whatperl has asked for the wisdom of the Perl Monks concerning the following question:
Hey monks!
Oops. I asked the question amazingly poorly. I'm reading many lines in a text file of the format below. There is no convenience of CASE from which I can pluck. The constant that I can parse with is the positioning of the words that I capitalized for demo purposes. I'm thinking I have to say, "give me the characters between the third \ and the ", assming you just read thru the text "add vdisk", or something like that. Oh great, I just asked another question amazingly poorly...
add vdisk "\v disks\type 1\VDNAME" disk_group="\d gs\DISKGRP1" size=50 +0 ...
Thanks
Edit: g0n - Original content follows for context:
what's the best way to extract the CAPITAL text from the line below into variables ? add vdisk "\v disks\type 1\VDNAME" disk_group="\d gs\DISKGRP1 size=500 ... Thanks
20060512 Janitored by Corion: Added code tags, formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: newbie parse Q
by GrandFather (Saint) on May 11, 2006 at 20:51 UTC | |
|
Re: newbie parse Q
by swampyankee (Parson) on May 11, 2006 at 22:34 UTC | |
|
Re: newbie parse Q
by jeffa (Bishop) on May 11, 2006 at 20:34 UTC | |
by ikegami (Patriarch) on May 11, 2006 at 22:36 UTC | |
by blazar (Canon) on May 12, 2006 at 10:30 UTC |