while ( <INPUT> ) { print OUTPUT qq{$1 ------> $2\n} if m{(?x) ^ AMQ8409 .*? ( QUEUE .*? \) ) .* ( RNAME .*? \) ) }; }
You don't need to escape the closing parenthesis in your negated character class, BTW.
Cheers,
JohnGG
In reply to Re^2: capturing words
by johngg
in thread capturing words
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |