August 31st, 2010, 04:47 AM
Remove #&12345; strings
does anyone know how i can remove strings like #&876543; with regex in php ?
the number part in the string is dynamic.
it would be great to hear from you, and i will appreciate your help a lot!
August 31st, 2010, 09:23 AM
Just remove it?
$theString = preg_replace("/#&\d+;/", '', $theString);
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.