in reply to Splitting into variables columned data without delimiters with a regexp ?
If I understand your requirements, you need to get 11 characters, split in a group of 6 and one of 5. The code below just does this (using the metacharacter .).
HTH and have fun benchmarking, Ratamy $s = "xabcdefghijXABCDEFGHIJ01234567890"; while ($s =~ /(......)(.....)/g) { print "$1 $2\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Splitting into variables columned data without delimiters with a regexp ?
by gerleu (Novice) on Nov 01, 2011 at 09:42 UTC |