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
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,
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
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
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 =
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
6 matches
Mail list logo