PhpDig.net
>
General Forums
>
The Mole Hole
> Easy RegExp Trivia
PDA
View Full Version :
Easy RegExp Trivia
Charter
09-12-2003, 10:51 AM
Here's an easy one... In words, describe what the following does:
$foo = eregi_replace("([a-z0-9])[/]+","\\\\1/",$foo);
druesome
10-27-2003, 11:26 AM
I'm guessing it converts any alphanumeric character followed by a slash in $foo into the characters \1/ then spits out $foo? Just a wild guess from a newbie.:p
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.