Forum Moderators: coopster
[11] blah blah blah
[12] more text
[13] and even more text
[14] etc
I am trying to make a regular expression that gets rid of
all the numbers and their brackets.
I came up with something like this but the problem is getting rid of the brackets correctly:
$the_text = ereg_replace("[\[0-9\]]", "", $the_text);
Any ideas what is wrong?
Thank you in advance :-)
However, if you want to use perl you still have to get the regular expression correct ;)
$string =~ s/\[[0-9]+\]//g;