Or do a normal greedy match on the letters, and insert the X's after them in the same fashion:
s{ ^([a-zA-Z]+) }{ $1 . 'X' x ( 14 - length ) }xe;
In reply to Re^2: Counting to add space to a string
by aaron_baugher
in thread Counting to add space to a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |