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

    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0

    Find Xml Tag Without two Pieces of Text


    I've created a Regex expression that successfully finds Xaml (is a type of Xml) tags that don't have a particular attribute. Here is the example:

    <(?=.*?adaptcombobox)((?!displaymemberpath).)*>

    This works perfectly, but I need to narrow down the result set further. It shouldn't just filter based on "displaymemberpath", I want to cut out matches that have "style" as well.

    How can I do this?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    /dev/null
    Posts
    164
    Rep Power
    19
    Can you try this (un-tested):
    Code:
    <(?=.*?adaptcombobox)((?!(displaymemberpath|style)).)*>

IMN logo majestic logo threadwatch logo seochat tools logo