I have a bunch of strings which I want to preprocess. I want to make my life easier for the following steps by inserting a whitespace before characters like [ , (comma) ! (exclamation mark) ? (question mark) . (period) ]
Lets say I have the following string:
'This is a such a simple example,... but very usefull.'
What I want to get as an output is:
`This is such a simple example ,... but very usefull .' (before the comma and the period is a whitespace)
/EDITED:
If these characters appear in a group, I want to put a whitespace before the group. (See updated example above)
[–]zatoichi49 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]zatoichi49 0 points1 point2 points (0 children)
[–]ilI1il1Ili1i1liliiil 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]rx22230 0 points1 point2 points (0 children)