That would be nice but unfortunately it gives this incorrect output
You are right, I recognized that too, after posting. But there are many ways to trim the leading and following white space characters from a string. ie. map { s/^\s*|\s*$//g } @result; would do the trick.
--
Alper Ersoy
In reply to Re: Re: Re: Re: Regular expressions
by aersoy
in thread Capturing text between literal string delimiters (was: Regular expressions)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |