Great video! thank you sir! Lets say I have a document that contains 123A, 456A, A123 and A425 but I want to remove all the A's at the end of the numbers without removing the A's in any other part of the document, what will be my best approach in doing this? Thanks again for the great video.
Hello Amit, I'm trying to do you're "^\[2022" command but in my case it's not working, all it says is "Can't find text" or "Invalid regular expression".
Does the date that you want to search start at the beginning of the line? The above regex should work. Can you please add few sample lines in the comment here and I can give it a try.
Hello Amit, maybe you have a video explaining but I was unable to find. I am trying to use notepad ++ to replace a few plc tags when I do a conversion. The tag would look like this to start B3:4/5 and would need to change to B3[4].5, also to note the 4 and 5 in the example above could be a 2 or 3 digit number. Are you able to help or point me to a video for reference? Appreciate your time!
Shawn, I ended up making a short video, since it is a pretty good question to demo some Regular expression features. Here it is. Hope it is helpful. ( ruclips.net/video/2pMuodUUbKk/видео.html )
Hello Amit, Lets Say I Want To Extract A Full Line Containing "XZ880" But Its In The Middle Not In The Start Like You Explained In The Video Example How Can I Select That Line?
Ashu, you can simply use Regular Expression to select the line that contains XZ880, for example, you can use this regex: ^.*XZ880.*$ It will select any line that contains XZ880 anywhere in the line. Hope it helps.
6:25 I would have just used Replace here and skip the marking. Not much of a point to marking the lines if they're going to be deleted. Unless I'm missing something.. I've only recently started learning about regex
Hi amit i have a question: Consider that i have 100 notepad files in which there are codes written in each notepad files. Now I want to replace line no 4 of every notepad file with some comments say Hello. How do i do that in one go?
You can try Find in Files feature in Notepad++. You can search and replace a specific text in multiple files in one shot? Here I have made a demo video for the same. Please take a look at it. Thanks. ( Find in Files in Notepad++, ruclips.net/video/fBonIJ61zto/видео.html )
Hi Amit, Let me know if you someday decide teaching some basic PHP, because I'm struggling to understand what is missing in a test code that I've written and is not working.
Is there a way to Mark the entire line if the text you search for is not at the beginning of the line? I am missing characters on the left. Alternatively, is there a way to copy text in all bookmarked lines? Edit: I figured out using Bookmarks so my problem is essentially solved with that as the workaround. Still it would be nice to just tell Notepad++ to mark the entire line even if the search criteria is not at the beginning (left most characters) of the line.
If you would like to mark the entire line, you need to use '^.*YourSearchCriteria.*$'. Basically, ^ (hat) symbol means start at the beginning of the line. and $ (dollar) symbol means the end of the line. .* means any numbers of characters. So, using this regular expression, you should be able to mark the entire line. Hope it helps.
These are great tutorials! thank you
Thank you. Glad to help.
Great video! thank you sir! Lets say I have a document that contains 123A, 456A, A123 and A425 but I want to remove all the A's at the end of the numbers without removing the A's in any other part of the document, what will be my best approach in doing this? Thanks again for the great video.
Thanks. Let me look into that. You can search something like ‘ (.*)A ‘ and replace with ‘ \1 ‘ meanwhile.
I was able to fix it by using something like (\d)A in find what and \1 in Replace with.Thank you very much for your prompt reply.I appreciate it Sir.
Hello Amit,
I'm trying to do you're "^\[2022" command but in my case it's not working, all it says is "Can't find text" or "Invalid regular expression".
Does the date that you want to search start at the beginning of the line? The above regex should work. Can you please add few sample lines in the comment here and I can give it a try.
@@AmitChristian No I wanna search for a different word, i was just using you're example.
Great tips!
Glad it was helpful!
Does "YourSearchCriteria" have "AND' or "OR" function to search multiple texts in the lines?
Perfect, ty kind sir
You’re welcome. Glad to know that it was helpful
Hello Amit, maybe you have a video explaining but I was unable to find.
I am trying to use notepad ++ to replace a few plc tags when I do a conversion.
The tag would look like this to start B3:4/5 and would need to change to B3[4].5, also to note the 4 and 5 in the example above could be a 2 or 3 digit number. Are you able to help or point me to a video for reference? Appreciate your time!
Shawn, I ended up making a short video, since it is a pretty good question to demo some Regular expression features. Here it is. Hope it is helpful. ( ruclips.net/video/2pMuodUUbKk/видео.html )
More useful, thank you 🙂
You're welcome 😊
Can I use this method for "replace" function in notepad++ ?
Aditi, sorry for late response. Yes, you should be able to use it for replace. Thanks for the comment.
Hello Amit,
Lets Say I Want To Extract A Full Line Containing "XZ880" But Its In The Middle Not In The Start Like You Explained In The Video Example How Can I Select That Line?
Ashu, you can simply use Regular Expression to select the line that contains XZ880, for example, you can use this regex:
^.*XZ880.*$
It will select any line that contains XZ880 anywhere in the line. Hope it helps.
6:25 I would have just used Replace here and skip the marking. Not much of a point to marking the lines if they're going to be deleted. Unless I'm missing something.. I've only recently started learning about regex
Hi amit i have a question:
Consider that i have 100 notepad files in which there are codes written in each notepad files.
Now I want to replace line no 4 of every notepad file with some comments say Hello. How do i do that in one go?
You can try Find in Files feature in Notepad++. You can search and replace a specific text in multiple files in one shot? Here I have made a demo video for the same. Please take a look at it. Thanks. ( Find in Files in Notepad++,
ruclips.net/video/fBonIJ61zto/видео.html )
Hi Amit,
Let me know if you someday decide teaching some basic PHP, because I'm struggling to understand what is missing in a test code that I've written and is not working.
Edgar, I am not much familiar with PHP and do not think, I have expertise to teach. But I am sure there are tons of good resources out there.
@@AmitChristian Thank you!
Is there a way to Mark the entire line if the text you search for is not at the beginning of the line? I am missing characters on the left.
Alternatively, is there a way to copy text in all bookmarked lines?
Edit: I figured out using Bookmarks so my problem is essentially solved with that as the workaround. Still it would be nice to just tell Notepad++ to mark the entire line even if the search criteria is not at the beginning (left most characters) of the line.
If you would like to mark the entire line, you need to use '^.*YourSearchCriteria.*$'. Basically, ^ (hat) symbol means start at the beginning of the line. and $ (dollar) symbol means the end of the line. .* means any numbers of characters. So, using this regular expression, you should be able to mark the entire line. Hope it helps.
I need to change xls to txt on real time ..pls guide
Can’t you save excel file as CSV?
Hi Sir,
i got problem to delete text by paragraph using notepad++ can tech me how to delete all text in paragraph.
For example,
feel free to tech me 😅
Rasyid, can you please describe, what you are trying to delete from these text and I can help you out? Thanks.