HtorneDK has asked for the wisdom of the Perl Monks concerning the following question:
In the line with A00004 the second column is broken up where the - sign is. Is there a way to fix this using regex? So I end up with something that looks like thisA00002 \\a00002\c$ 2 WinNT NTFS Yes 73,626MB 42.5 A00003 / 1 Linux86 EXT3 No 38,289MB 29.8 A00004 A00004 \Sys- 1 WinNT VSS Yes 0 KB 0.0 temState\- NULL\Syst- em
The original document contains about 800-900 lines. Also please keep in mind that I'm a newbie at perl so writing the solution using simple answers such as "juA00004 \SystemState\NULL\System 1 WinNT VSS Yes 0 KB 0.0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex copy and paste help
by roboticus (Chancellor) on Aug 31, 2012 at 10:56 UTC | |
|
Re: Regex copy and paste help
by aaron_baugher (Curate) on Aug 31, 2012 at 10:42 UTC | |
|
Re: Regex copy and paste help
by MidLifeXis (Monsignor) on Aug 31, 2012 at 12:44 UTC | |
|
Re: Regex copy and paste help
by Anonymous Monk on Aug 31, 2012 at 09:12 UTC | |
|
Re: Regex copy and paste help
by talexb (Chancellor) on Aug 31, 2012 at 16:58 UTC | |
|
Re: Regex copy and paste help
by nemesdani (Friar) on Aug 31, 2012 at 09:05 UTC | |
|
Re: Regex copy and paste help
by HtorneDK (Novice) on Aug 31, 2012 at 09:36 UTC | |
|
Re: Regex copy and paste help
by CountZero (Bishop) on Sep 01, 2012 at 13:17 UTC | |
|
Re: Regex copy and paste help
by HtorneDK (Novice) on Sep 03, 2012 at 12:33 UTC |