I would like to split a string where any character is a space or punctuation (excluding apostrophes). The following regex works as intended.
/[^a-z']/i
Words like I’ll and Didn’t are accepted, which is great.
The problem is with words like ‘ere and ‘im. I would like to remove the beginning apostrophe and have the words im and ere.
I would ideally like to stop/remove this within the regex pattern if possible.
Thanks in advance.
Try this