in reply to capturing words
while (<INPUT>) { if (/^AMQ8409 .* QUEUE\( ([^\)]+) \) .* RNAME\( ([^\)]+) \)/x) { print OUTPUT "QUEUE($1) ------> RNAME($2)\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: capturing words
by johngg (Canon) on Nov 08, 2007 at 16:17 UTC |