s!(\S{10,39} (?: [a-z](?=[A-Z]) | [\\/:,.;\!?\)\]] | (?= [\(\[{]) | (?<=\S{40}) ))!$1 !gx;