Search a files that contains multiple requested words.
-
I dont know how to express my self so that people will understand what I need, so I will make an example.
Lets say I have 4k files like this:<ADDRESSID>2</ADDRESSID> <DISTRICTTYPE /> <DISTRICTNAME /> <STREETTYPE /> <STREETNAME /> <POSTALNUMBER>999999</POSTALNUMBER> <BLOCK /> <ENTRY /> <FLOOR /> <APNO />
And need to search for the file that has the ADDRESSSID 2 and the POSTAL NUMBER 23.
How do I do that? -
Assuming that your file repeats over and over something very similar to your sample, this could do it:
Find what:
(?s)<ADDRESSID>2<.+<POSTALNUMBER>23<
Search mode:Regular expression
-
@Scott Sumner
First of all , thank you for your replay.
And, could you please tell me what Im doing wrong?
https://s31.postimg.org/4s5409f23/Screenshot_2.png -
It looks like this works only if ADRESSID is first and POSTALNUMBER comes after, otherwhise I will need to swap them.
-
From your screenshot, it appears you are searching for your data in the wrong order: you won’t find “ab” if you tell Notepad++ to search for “ba”…