grammar: Use explicit count modifiers

The `{,N}` extension is not supported by most regexp engines, as it is an Onigurma-only extension. If it's not too painful, it'd be super-nice to have `{0,N}` in the grammar so we can use it on PCRE-based engines too.

Obviously behavior should be identical.

cc @sorbits