[Project_owners] Help with a regular expression?

Michael Vincent mv_van_rantwijk at yahoo.com
Sat Sep 3 13:56:38 EDT 2005


David Murray wrote:
> Hurrah! Thankyou very much! This has been annoying me for way too long.
> 
> David.

but you might want to change that a little like this:

/< *(br|hr|img)([^>]*[^\/]|)>/gi

to catch:

< br...
<  hr...
<   img...

BTW: how do you replace:

<img src = http://www.foobar.org>

or:

<img src ='http://www.foobar.org'>

???

Michael


More information about the Project_owners mailing list