J
jm
/([\w\s\.\'\-]*)
does not match this:
My Fictional Co.
But it does match
Product by abc company
I don't understand why it matches the second one, but not the first.
Doesn't my expresionsay match anything that has a word, space, dot,
apostrophe, or a hyphen, one or more times? Thefirst one has a . in it
and it should work. It does work on others like:
Dr. Smith's
Thank you for any help.
does not match this:
My Fictional Co.
But it does match
Product by abc company
I don't understand why it matches the second one, but not the first.
Doesn't my expresionsay match anything that has a word, space, dot,
apostrophe, or a hyphen, one or more times? Thefirst one has a . in it
and it should work. It does work on others like:
Dr. Smith's
Thank you for any help.