blackadder has asked for the wisdom of the Perl Monks concerning the following question:
I want to capture every line that finishes off with [**REQUIRES USER CONTEXT**]. So I wrote this bit of code:Samanchi JAM 3.5 FW [**REQUIRES USER CONTEXT**] IM CBAS 4.0 IM-Global [**REQUIRES USER CONTEXT**] Microsoft Office 2003 BU Configuration (IM-NA-02) Microsoft Office XP Configuration (IM-01) IM Rappa for Investment Management Russell Performance Universes Fonts 2.1 IMG [**REQUIRES USER CONTEXT +**] IM CBAS PowerPointAddin 3.8a IM Global [**REQUIRES USER CONTEXT**] IM CBAS Prod (WinDist) [**REQUIRES USER CONTEXT**] LineData Services LongView 2000 2.5.5 MSIM-NY IM CBAS 4.0 IM-Global IM GSD Prod (WinDist) [**REQUIRES USER CONTEXT**] Microsoft Office 2003 BU Configuration (IM-NA-01) [**REQUIRES USER C +ONTEXT**] Russell Performance Universes Fonts 2.1 IMG
However, I get no output! The above does make sense to me, but obviously its not correct.print "$1\n" if $item =~ /(.+)\[\*+REQUIRES USER CONTEXT\*+\]$/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Traping [** using reg exp
by jeffa (Bishop) on Sep 08, 2004 at 14:56 UTC | |
|
Re: Traping [** using reg exp
by mutated (Monk) on Sep 08, 2004 at 15:29 UTC | |
by Anonymous Monk on Sep 09, 2004 at 09:59 UTC | |
|
Re: Traping [** using reg exp
by VSarkiss (Monsignor) on Sep 08, 2004 at 15:03 UTC | |
by blackadder (Hermit) on Sep 09, 2004 at 10:04 UTC | |
|
Re: Traping [** using reg exp
by davido (Cardinal) on Sep 08, 2004 at 15:07 UTC | |
by ikegami (Patriarch) on Sep 08, 2004 at 15:15 UTC | |
by Anonymous Monk on Sep 08, 2004 at 15:11 UTC | |
|
Re: Traping [** using reg exp
by Anonymous Monk on Sep 08, 2004 at 15:02 UTC | |
by Anonymous Monk on Sep 08, 2004 at 15:04 UTC |