So I gave you a regex, but still used substr.
The real question is, why do you insist on using a regex? it's not a good idea, and far from being an ideal solution.
In reply to Re^3: regex for string
by moritz
in thread regex for string
by saranperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |