s/\\\[.*?\]\\//g; # get rid of what you don't want first @wanted = (/\[(.*?)\]/g); # then get what you want
In reply to Re: regex for but not \\
by graff
in thread regex for [ but not \[
by shockme
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |