title: REGEX - Insert space after every 4 characters, and a line break after every 40 characters
body: <p>I have a huge string (22000+ characters) of encoded text. The code is consisted of digits [0-9] and lower case letters [a-z]. I need a regular expression to insert a space after every 4 characters, and one to insert a line break [\n] after every fourty characters. Any ideas?</p>