Does anyone know how to search something like this in the search box of Notepad++ ?
ID. 213
Debt: 13 $
I want this to be searched like :
"ID. (don'care for the number/any character),newline, Debt(don'care for the number/any character)"
Replacing text within NotepadOpen the text file in Notepad. Click Edit on the menu bar, then select Replace in the Edit menu. Once in the Search and Replace window, enter the text you want to find and the text you want to use as a replacement.
Finding text in Notepad and WordPad The Ctrl + F and Command + F keyboard shortcut keys also work in Microsoft Notepad and Microsoft WordPad.
RegEx Cheat Sheet for Notepad++A single letter, digit, punctuation marker, whitespace, etc. Whitespace. Any character that is not visible: space, tab, etc. String. Any sequence of characters.
But just use the find and replace. Look for ":\n" and replace with "\n" or something like that. You may need to mess with the find and replace options.
Turn on regular expression mode in Find, with ". matches newline
" enabled:
Search for:
ID\.\s.*[\n]+Debt:\s.*$
Older versions of Notepad++ have difficulty matching multi-line regexes, be sure to have version 6+ Notepad++ for this to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With