search multiple string from a directory
-
hi,
I have multiple XML files in a directory, I need to search two particular tags combination to be present in the same file from that directory.
the two tags which i am searching are <menu id> and <maxcount>xml file will be like this below,
<menu id>
<some tags>
</some tags>
<maxcount></maxcount>
</menu>
i tried using this regular expression <menuid>|<maxcount> in findwhat i am getting the files with these combination but along with these others file having <menuid> or <maxcount> are also coming in search hits…but i wanted to search only these combination to be found in a file. -
There’s some nice stuff on how to do that HERE.