Am 15.06.2010 um 15, 22:12 schrieb mindmojo:
> I'm trying to insert some new HTML into several HTML pages. The new
> HTML should appear between the first and second HTML-formatted
> paragraphs but not between any other subsequent paragraphs.
I'm not quite sure if I unterstood your aims completely but you might try this pattern:
(?s)\A.+?</p>
A little explanation:
(?s): makes the dot character match line breaks, hence really any character in the document
\A: matches the beginning of the document.
So the pattern matches everything from the top of the document down to the end of the first paragraph. Just replace it with something like:
&\ryour_new_code_here
(& matches the entire search pattern without the need for brackets - something I tend to forget using myself)
Regards,
Roland