|
Hi
I'm trying to come up with a regex match that will match a string that does NOT contain an underscore "_". i.e match "foo" but not "foo_bar"
Second part of my question is for words that do contain underscores - I want to retrieve everything before the underscore. i.e. for "foo_bar" match and return "foo"
Thanks
|