Does PHP support regex shorthand character classes?
e.g.
\d is for digits 0-9
\w is a word
\b is word boundary
etc
I tried simple regex functions in php using these and they didn't work as expected.
<?
echo ereg_replace("\d", "digit", "This is a 7 and a 9.");
?>
should print: This is a digit and a digit. But it just prints the original string.