grammar: Use explicit count modifiers

The `{,N}` extension is not supported by most Regexp engines, as it is
an Onigurma-only extension.