Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    search multiple string from a directory

    General Discussion
    2
    2
    30
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dinesh babu 0
      dinesh babu 0 last edited by

      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.

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @dinesh babu 0 last edited by

        @dinesh-babu-0

        There’s some nice stuff on how to do that HERE.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors