R
Richard Maher
Hi,
Can anyone please show me a regular expression (or function or other) for
padding out a string to a fixed number of bytes?
At the moment I've got a var initialized to N spaces, where 'N' is the
largest string I have to pad out, and then I concatenate a substring of that
to my source string so that it ends up the right size. This all works well
but, if possible, I'd like a more generic/elegant approach to manufacturing
N spaces. Is the a regular expression to returning {N}*aString?
Cheers Richard Maher
Can anyone please show me a regular expression (or function or other) for
padding out a string to a fixed number of bytes?
At the moment I've got a var initialized to N spaces, where 'N' is the
largest string I have to pad out, and then I concatenate a substring of that
to my source string so that it ends up the right size. This all works well
but, if possible, I'd like a more generic/elegant approach to manufacturing
N spaces. Is the a regular expression to returning {N}*aString?
Cheers Richard Maher