The <p> stuff is a paragraph, not a page break. Just saying because it's been driving me crazy.
Regexes only do string matching with no interpretation of what the strings are, do or mean in it. There's no text to match in between your opening and closing tags, thus, nothing should get matched except for an empty link tag inside a paragraph tag.
It seems to me that while you obviously know something about regular expressions, you may have missed the concept. Think about the string matching part of the second paragraph a little.
|