in reply to Re^2: Regex split string into n-length (\K 5.010)
in thread Regex split string into n-length

That adds a terminal "-" whenever the string's length is a multiple of 3:

-- Ken

Replies are listed 'Best First'.
Re^4: Regex split string into n-length (\K 5.010)
by McA (Priest) on Sep 10, 2013 at 07:57 UTC

    Hi Ken,

    You are absolutly right. Thank you for showing this error.

    Look at my update.

    McA