Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
A typical line of the info.txt file is
I want the hash %users to have their username as the key, and the rest as-is with the delimiters. Without all the extra spaces after the username of courseusername Real Name|email@gmail.com|2|30|
Can someone help me with this simple regex?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regex to split a line
by McDarren (Abbot) on Jun 21, 2006 at 04:22 UTC | |
by davorg (Chancellor) on Jun 21, 2006 at 08:40 UTC | |
Re: regex to split a line
by bobf (Monsignor) on Jun 21, 2006 at 03:24 UTC | |
Re: regex to split a line
by davorg (Chancellor) on Jun 21, 2006 at 07:36 UTC | |
Re: regex to split a line
by sulfericacid (Deacon) on Jun 21, 2006 at 03:25 UTC |