I notice your regex includes '$' with no '\s*' before it. Perhaps you're forgetting to chomp your input lines? That could easily make your regular expression fail.
...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 pramod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |