The first one works fine for me, the second works if I escape the slash in brackets:
$ perl -e'm/\/?(.*)\/([^\/]+\/?)/'
"All you need is ignorance and confidence; then success is sure."-- Mark Twain
In reply to Re: Bug in RE parser?
by webfiend
in thread Bug in RE parser?
by Aristotle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |