in reply to Incorrect Pattern Matching Behavior
Which outputs:if ($_ =~ /^S\s+[-]*\d+[\.\d+]*\s+[-]*\d+[\.\d+]*\s*\(\s*IOPUT|OUTPUT\ +s*\)/i) { print "PRE=$`\nMATCH=$&\nPOST=$'\nIt matches with case insensitive +...\n"; }
That's the easy bit :)PRE= onn (bbcreccsnnl_ MATCH=output) POST= !OUTPUT It matches with case insensitive...
Getting your expression to actually do what you want it to may be a little trickier. Perhaps if you could list the "rules" for the match, I (or others) may be able to help you craft an appropriate expression.
Cheers,
Darren :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Incorrect Pattern Matching Behavior
by T.G. Cornholio (Scribe) on Mar 22, 2006 at 00:42 UTC | |
by hv (Prior) on Mar 22, 2006 at 02:03 UTC | |
by McDarren (Abbot) on Mar 22, 2006 at 01:59 UTC |