#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    0

    Post Eclipse - Search files containing html/jsp tags with arguments starting without "


    Hello all,

    Thanks in advance. Please let me know on the regex pattern to be used to find all html/jsp tags that have arguments and those arguments dont start with " i.e. double quotes.

    See following example:

    <img name=abc ........

    <img name='myname' .........

    In above examples the argument "name"'s value does not start with " (i.e. double quotes). Need to find all lines in the files that have above patterned tags. I tried hard but no luck yet. Also please note that I want to try it from Eclipse, file search.

    Regards
    Vishal Birari
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,122
    Rep Power
    9398
    Don't remember which style they use. Guessing something close to PCRE.
    Code:
    <[^<]+?=[^"]
    That'll find you each tag, not each individual attribute in the tag.

IMN logo majestic logo threadwatch logo seochat tools logo