Print the matched value you found in $1 to the console, and it'll be immediately apparent why you don't find what you're looking for.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Regular expression
by roboticus
in thread Regular expression
by sharief
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |