Hi,
I've learned my PHP from the book 'PHP4 Bible'. It has only a VERY basic section of regular expressions. I need to know this:
I have a string
"Credit card number: <font color='#FF0000'>1234 5678 1234 4557</font></font>"
I need to replace the card number which consists of groups of digits separated by a space, with the string
" encrypted "
What is the correct way to do this using ereg_replace()? I know that I can use [0-9] for the digits, but I'm confused with the inclusing of a space character in the original string between the digits.
Thanks Graham