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”…
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login