You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just playing around with https://ablingeroscar.github.io/moo-playground/ and I don't understand why replacing WS: /[ \t]+/ with WS: /[\s]+/ doesn't work. Shouldn't that pick up any white space?
Similarly, I'm not sure why String: /[^]+/ (I'm just testing matching everything) doesn't work either.
Am I missing something?
The text was updated successfully, but these errors were encountered:
Moo uses multiline RegExps. This has a few quirks: for example, the dot /./ doesn't include newlines. Use [^] instead if you want to match newlines too.
Since an excluding character ranges like /[^ ]/ (which matches anything but a space) will include newlines, you have to be careful not to include them by accident! In particular, the whitespace metacharacter \s includes newlines.
I'm just playing around with https://ablingeroscar.github.io/moo-playground/ and I don't understand why replacing
WS: /[ \t]+/
withWS: /[\s]+/
doesn't work. Shouldn't that pick up any white space?Similarly, I'm not sure why
String: /[^]+/
(I'm just testing matching everything) doesn't work either.Am I missing something?
The text was updated successfully, but these errors were encountered: