I am trying to create a regex that can match different variations of a string. Specifically I am (with \s+
two words dividing), I, Im and Iam.
I tried to do it here, but it doesn't seem to work: I\s+?a?'?m
make white space, a and 'optional.
How would I do it correctly?
source
to share