Re: Regular expression help?
Marjolein Katsma <[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.curiosa |
|---|---|
| Organization | Xaraya News Server |
| Message-ID | <[email protected]> |
Jason Judge wrote in news:bmdrfh$c78$1-111RdWWlOxkOkXtL6OYfHgC/[email protected]: > 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. Actually, finding specific attributes is pretty easy with REs. (I can find all input tags that *do* have an id attribute quite easily, for instance, regardless on which position it occurs). It's matching the "NOT containing..." bit that's the difficulty here. Maybe the tools Chris and Marcel mentioned will help. -- Marjolein Katsma * Help with HomeSite/Studio: http://hshelp.com/ * Books for webmasters and webrookies: http://books.hshelp.com/ * Java Woman: http://javawoman.com/