Quote:
Originally Posted by eschwartz
The dot plus will match all text including tags, thus matching everything frkm the opening of the first tag to the closing of the last tag.
Use:
[CODE]<[^<>]*>[CODE]
to restrict the match using a set which excludes tag opening and closing brackets.
|
The dot+? will match up to the first >, not the last one.
And neither pattern will work for something like
Code:
<a href="...", alt="demonstrate that a > b">foo</a>
Yes, it will work if you use entities, but not everyone does.