[thelist] Regular Expression Question
Joshua Olson
joshua at waetech.com
Sat Nov 8 22:34:42 CST 2003
----- Original Message -----
From: "Beau Hartshorne" <beau at hartshorne.ca>
Sent: Saturday, November 08, 2003 9:19 PM
> I am trying to write a regular expression (using PHP's preg_replace())
> that will take a string like this:
>
> She said "hello, world" [<a target="_new"
> href="link.html">1</a>]
>
> And turn it into a string like this:
>
> She said "hi, there." [<a target"_blank"
> href="link.html">1</a>]
Beau,
I created a solution to the opposite problem in CF:
http://concepts.waetech.com/replace_inner_text/
If you are able to translate from CF to PHP and reverse the logic you may
find that link helpful.
Good luck,
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168
More information about the thelist
mailing list