in reply to Re^5: How to convert a string with regex to a string with a fixed length?
in thread How to convert a string with regex to a string with a fixed length?

Well, try something like

s/$/ + /; s/^\(.\{1,100\}\).*/\1/;

The first substitution has 100 or more spaces on the rhs.

  • Comment on Re^6: How to convert a string with regex to a string with a fixed length?
  • Download Code