AtlasFlame has asked for the wisdom of the Perl Monks concerning the following question:
I have below text file. I just want to get "NO."(1 to 21 or more), "device" and "name" to another file. The "NO." sometimes have different numbers. When it does the "name" also different. What regex can i use? any suggestion?
..more text... ..more text... ..more text... Information Summary for Head #1, Site1: No. P Device Percent Name ----------- --- ------------ ------- ----------------- 1 F 14 0.06 OPEN 2 F 216 0.97 CONTACT 4 F 326 1.47 LEFT 5 F 232 1.05 MID 6 F 54 0.24 RIGHT 7 F 6 0.03 AT 8 F 6 0.03 AT_GHT 11 F 184 0.83 5DBLT 12 F 151 0.68 2P5D 21 P 21009 94.64 Bin P ..more text... ..more text... ..more text...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get correct regex
by toolic (Bishop) on Jan 13, 2015 at 13:18 UTC | |
by Anonymous Monk on Jan 13, 2015 at 13:46 UTC | |
by BillKSmith (Monsignor) on Jan 14, 2015 at 14:17 UTC | |
by AtlasFlame (Novice) on Jan 15, 2015 at 11:32 UTC | |
by AtlasFlame (Novice) on Jan 13, 2015 at 13:29 UTC | |
by AnomalousMonk (Archbishop) on Jan 13, 2015 at 18:45 UTC | |
|
Re: How to get correct regex
by Anonymous Monk on Jan 13, 2015 at 13:16 UTC | |
by Anonymous Monk on Jan 13, 2015 at 13:20 UTC |