Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want to split at the pipeline and align everything to the right on the 45th char along. So something like this:ABCDEFGHIJKLMNOPQRST|1234 ABCDEFGHI|12345 ABCDE|1234 ABCDEFGHIJKL|123 ABCDEFG|123456 ABCDEFGHIJKLMNO|12
So I would imagine using s/|/*t*/; where *t* some how aligns the text to the 45th char.ABCDEFGHIJKLMNOPQRST 1234 ABCDEFGHI 12345 ABCDE 1234 ABCDEFGHIJKL 123 ABCDEFG 123456 ABCDEFGHIJKLMNO 12
Any ideas? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Alignment of text using regex
by jettero (Monsignor) on Jan 16, 2007 at 17:58 UTC | |
|
Re: Alignment of text using regex
by imp (Priest) on Jan 16, 2007 at 18:13 UTC | |
by jdporter (Paladin) on Jan 16, 2007 at 18:38 UTC | |
by jettero (Monsignor) on Jan 16, 2007 at 20:07 UTC | |
|
Re: Alignment of text using regex
by BrowserUk (Patriarch) on Jan 16, 2007 at 18:30 UTC | |
|
Re: Alignment of text using regex
by shigetsu (Hermit) on Jan 16, 2007 at 18:51 UTC | |
|
Re: Alignment of text using regex
by madbombX (Hermit) on Jan 16, 2007 at 19:33 UTC |