Search a textfile
-
Hello!
Im sure this question is answerd somewhere in this forum but i dont know what to look for.I have a text file that i want to search in. I want notepad++ to display all results containing this for example:
If i search for c*r notepad++ should display results like: car, cob, cer etc.
Anyone can help me with this? :)
Have a nice day
-
Search for “Regular Expression” or “RegEx”. You will find lots of information in this Forum.
You may also want to look at http://www.boost.org/doc/libs/1_65_1/libs/regex/doc/html/boost_regex/syntax.html for RegEx syntax. -
In the “Find” dialog there is “Search Mode” group box. Just select the option labeled “Regular expression”.
You can find explanations about regular expressions here:
-
solution:
make a regex search for c(.?)r
this will find and highlight the whole search string, if it is beginning with c, ending with r, and having any single character in betweenif you want to search for anything beginning with c, ending with r, but having an unknown ammount of characters or spaces in between, use c(.*?)r
-
Thanks alot guys! =)