M
Mark Clements
[^\s.] will match non-whitespace or non-anything (^ inside a characterEdward said:Hi,
[^\s.] or [^\s[a-zA-z]] doesn't seem to work.
Anything wrong with my regex?
class negates the class). I'll assume that you are trying to anchor to
start-of line, though your spec doesn't mention it. You spec refers to
spaces and not whitespace, though this time I'll assume you mean spaces.
How about:
^ +\W+
though without any test data or expected results it's difficult to see
exactly what you're after.
Mark