in reply to Re: Counting to add space to a string
in thread Counting to add space to a string

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;