Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++ Any Character

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)"

like image 420
Themis Beris Avatar asked Jun 24 '13 09:06

Themis Beris


People also ask

How do I replace a character in notepad?

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.

How do I Find letters in notepad?

Finding text in Notepad and WordPad The Ctrl + F and Command + F keyboard shortcut keys also work in Microsoft Notepad and Microsoft WordPad.

What is Notepad RegEx?

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.

How do you remove the last 3 characters in notepad?

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.


1 Answers

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.

like image 178
Tim Radcliffe Avatar answered Oct 06 '22 18:10

Tim Radcliffe