Re: Regular expression help?
"Jason Judge" <[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.curiosa |
|---|---|
| Organization | Xaraya News Server |
| Message-ID | <[email protected]> |
"Marjolein Katsma" <[email protected]> wrote in message news:Xns941373E0D15ECjavawoman-eZa9WL4uNvh7QcVyMg8ateG/[email protected] > I'm normally pretty good with using regular expressions to find things > (using mostly HomeSite or UltraEdit, both of which use a POSIX flavor of > REs). One problem has me stumped though: > > I want to find input tags that do *not* have an id attribute. > (And select/textarea/button - but that's the same problem, of course; one > control at a time is fine). > > Suggestions anyone? > Or is it just not possible? You really need to parse the tags to find attributes. Whatever RE you use still has a chance of matching strings that are not attributes. Parsing keeps track of the context as it goes along. In other words, whatever RE you use, it would not be difficult to find some content that would fool it, IMO. -- JJ