kbradford has asked for the wisdom of the Perl Monks concerning the following question:
1222222222222222222223333333333333333333344444
The numbers just show where the data ends and a new set begins. Now I have to parse these, but I've never done it with no delimeters. Also, some fields may be left blank with all spaces. I was trying to use the regex expression:
/([\s.])([\s.]{20})([\s.]{20})([\s.]{5})/;
But it didn't like it. I'm fairly new to Perl, but from what I know this should match ANYTHING (\s for space, . for any other character) and match it for how many spaces are specified. But it sure doesn't work! Any help would be greatly appreciated.
Kevin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Matching
by Hofmator (Curate) on Jul 05, 2001 at 17:22 UTC | |
|
Re: Regex Matching
by jeroenes (Priest) on Jul 05, 2001 at 17:22 UTC | |
by kbradford (Novice) on Jul 05, 2001 at 20:54 UTC | |
|
Re: Regex Matching
by MZSanford (Curate) on Jul 05, 2001 at 17:28 UTC | |
by Abigail (Deacon) on Jul 05, 2001 at 19:26 UTC | |
|
Re: Regex Matching
by tachyon (Chancellor) on Jul 05, 2001 at 17:42 UTC |