Re: [PHP] Re: problem with this regex to remove img tag...

2008-03-18 Thread David Giragosian
On 3/16/08, Ryan A [EMAIL PROTECTED] wrote: Now that thats over... can anybody recommend a good starting point to learn regex in baby steps? Cheers! R Mastering Regular Expressions, by Jeffrey Friedl ISBN 0-596-00289-0 -- -David. When the power of love overcomes the love of power, the

Re: [PHP] Re: problem with this regex to remove img tag...

2008-03-18 Thread Daniel Brown
2008/3/17 Jonathan Crawford [EMAIL PROTECTED]: http://www.regular-expressions.info/php.html I second http://www.regular-expressions.info/. -- /Daniel P. Brown Forensic Services, Senior Unix Engineer 1+ (570-) 362-0283 -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: problem with this regex to remove img tag...

2008-03-16 Thread M. Sokolewicz
Ryan A wrote: Hey All, After searching I found this regex to remove img tags from a post, but running it is giving me an error, being a total noob with regex i have no idea what the heck is wrong heres the whole script as its tiny: ?php $html = hello .'img

Re: [PHP] Re: problem with this regex to remove img tag...

2008-03-16 Thread Jim Lucas
M. Sokolewicz wrote: Ryan A wrote: Hey All, After searching I found this regex to remove img tags from a post, but running it is giving me an error, being a total noob with regex i have no idea what the heck is wrong heres the whole script as its tiny: ?php $html = hello .'img

Re: [PHP] Re: problem with this regex to remove img tag...

2008-03-16 Thread M. Sokolewicz
Jim Lucas wrote: M. Sokolewicz wrote: Ryan A wrote: Hey All, After searching I found this regex to remove img tags from a post, but running it is giving me an error, being a total noob with regex i have no idea what the heck is wrong heres the whole script as its tiny: ?php $html =

Re: [PHP] Re: problem with this regex to remove img tag...

2008-03-16 Thread Ryan A
Thanks guys! This (From Tul/Sokolewicz): $html = preg_replace('#([/]?img.*)#U', '', $html); worked perfectly! I'm just learning this stuff so its extremly hard for me... i have been messing around with PHP for years but rarely even dipped my toes into the REGEX part as I think it would be