cochrasc has asked for the wisdom of the Perl Monks concerning the following question:
The first instance starts with "error", the 2nd "three" and the 3rd "fixv". Notice that the fixv instance doesn't have "{}" around the 4th and 5th pieces of data like the other 2 do...this is my problem and why I can't use split. Also note that the lack of "{}" can occur in any of the instances, not just the 3rd.value:patternList = "{error 1 1 {^E [0-2][0-9]:[0-5][0-9]:[0-5][0-9].* +$} {^E [0-2][0-9]:[0-5][0-9]:[0-5][0-9].*$}} {three 1 1 {^.*35=A.*$|^ +.*35=5.*$} {^.*35=A.*$|^.*35=5.*$}} {fixv 1 1 ^.*VFIXFxProxy.*Disconn +ected ^.*VFIXFxProxy.*Disconnected}"
I hope this makes sense...it's difficult to explain. Thanks in advance for any help.error 1 1 ^E [0-2][0-9]:[0-5][0-9]:[0-5][0-9].*$ ^E [0-2][0-9]:[0-5][0-9]:[0-5][0-9].*$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need Regex help
by Roy Johnson (Monsignor) on Sep 09, 2005 at 14:41 UTC | |
|
Re: Need Regex help
by JediWizard (Deacon) on Sep 09, 2005 at 14:36 UTC | |
by Earindil (Beadle) on Sep 09, 2005 at 15:46 UTC | |
by JediWizard (Deacon) on Sep 09, 2005 at 16:01 UTC | |
by Earindil (Beadle) on Sep 09, 2005 at 15:10 UTC | |
by JediWizard (Deacon) on Sep 09, 2005 at 15:13 UTC | |
by Earindil (Beadle) on Sep 09, 2005 at 15:27 UTC | |
|
Re: Need Regex help
by philcrow (Priest) on Sep 09, 2005 at 14:50 UTC |