DS has asked for the wisdom of the Perl Monks concerning the following question:
I want to read that file and see if the view contain < > then I need to ignore it so in this case , I want to only get line 2 and 3 and ignore the first one which contains (view: <UUID:50156b3c>) I am doing the following and able to check for the 2 and 3 line but the first is appearing as well and I don't want that.(view: <UUID:50156b3c>) (view: seerla_golden-dev_FGPCfeature) (view: seerla_golden-dev_FGPCfe)
thanks for helpif(m/\((?:.*): (.*)\)/){$Theview=$1}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex minpulation
by abaxaba (Hermit) on Aug 02, 2002 at 21:42 UTC | |
|
Re: regex minpulation
by dug (Chaplain) on Aug 02, 2002 at 22:00 UTC |