SNIP, SNIP
What I want to do is replace any repeating spaces (two or more) with a
tab. I know the examples below do not work but am just giving it as
pseudocode of replacing repeating spaces (between 2 and 50) with a
tab:
s/sp[2..50]/\t/gi;
or maybe hex value (hex 20 is the space
I have a text file that is a mess. It contains various fields with lots
of spaces between the fields. The amount of spaces differs from field to
field. Here is a sample of the file:
8spNAME:13spJOHN
SMITH22spRANK:3spCAPTAIN15spWIFE:6spPOCAHONTAS...
What I would like to have after processing
On Saturday, September 6, 2003, at 07:59 AM, perlwannabe wrote:
I have a text file that is a mess. It contains various fields with
lots
of spaces between the fields. The amount of spaces differs from field
to
field. Here is a sample of the file:
8spNAME:13spJOHN