Hi i wasn't sure if this was the right place to put this question so please move if there is somewhere more appropriate.
I'm pretty new to regular expressions, and have written one for a dreamweaver find an replace to strip an a tag if it links out of the current sites folder...
find:replace:Code:<a\s*href="../(.*)>(.*)</a>The Problem i have run into is that if there is an image inside the tag it will be deleted, or if there are two links in the one paragraph the content in between will be deleted too. It runs perfectly if the link is inside a list item for example.Code:$2
I think it is because if it runs into a second '>', it assumes that is the end of the 1st tag so deletes everything from there... is there a way to make it stop at the 1st '>'? (hope that made sense... it did in my head)
thanks



)


Bookmarks