Forum Moderators: coopster
I'm trying to remove all digits and '{}'
Here's the regular expresion portion of my code: [[:digit:],{}]
It doesn't work. It replaces digits, '{' and '}'.
I need the '{}' to be consider together not seperately.
I've also tried
[[:digit:],\{\}]
I want to use one line of code and use regular expressions for this problem.
Any help would be appreciated
The reason it didn't work at first is because you have it in a character class. A character class matches a single character in the subject. Scan the PCRE Pattern Syntax [php.net] page for "Square Brackets" and you'll find an example.