Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I couldnt use substring because some lines are not aligned with most of the lines. Thanks in advance... Joermdir: directory "SAS_util0001000021A9_sasux101": Directory rmdir: directory "SAS_util000100002E19_sasux101": Directory rmdir: directory "SAS_util000100005891_sasux101": Directory Heres the code I used but its wrong, I need to extract everything with +in the quotes into a variable or an array. while ($line = <CANT2>) { if ($line =~ /[\"\w+\_w+\_w+\"]/) { $keep = $1; push(@test,$keep); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reg Ex with quotes
by GrandFather (Saint) on Jan 30, 2006 at 23:52 UTC | |
by duckyd (Hermit) on Jan 30, 2006 at 23:56 UTC | |
by GrandFather (Saint) on Jan 31, 2006 at 00:43 UTC | |
by Anonymous Monk on Jan 30, 2006 at 23:59 UTC | |
|
Re: Reg Ex with quotes
by Fletch (Bishop) on Jan 30, 2006 at 23:52 UTC | |
by Anonymous Monk on Jan 30, 2006 at 23:56 UTC | |
by Fletch (Bishop) on Jan 30, 2006 at 23:58 UTC | |
by Anonymous Monk on Jan 31, 2006 at 00:14 UTC | |
|
Re: Reg Ex with quotes
by smokemachine (Hermit) on Jan 31, 2006 at 02:41 UTC |