Regex help...
| From: | Murray @ PlanetThoughtful | Date: | Sat, 16 Oct 2004 08:33:39 +0000 |
| Subject: | Regex help... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-199627@lists.php.net to get a copy of this message | ||
Hi All,
I rather badly need some help with a regular expression.
I need to identify the occurrence of the following search string in another
string, and replace it with some text followed by the identified search
string.
<search string>
<p><a href="http://mysite/index.php?p=2#more-2">(more…)</a></p>
</search string>
The consistent part of the string is the text "(more…)</a></p>"
Essentially, I'm trying to figure out how to insert text prior to the
opening "<p>" in this line.
Can anyone give me a hand in working this out?
Many thanks in advance!
Much warmth,
Murray