PDA

View Full Version : Easy RegExp Trivia


Charter
09-12-2003, 09: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, 10: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