ietf-wg-jsonpath / iregexp

I-Regexp: An Interoperable Regular Expression Format
Other
7 stars 1 forks source link

Escape sequences singleCharEsc #18

Closed springcomp closed 1 year ago

springcomp commented 1 year ago

The various expressions referred to at the end of the document make for a reasonably complete compliance test suite.

I'm creating a quick checker that I think could be useful to this project as I will need to embed and process Regex expressions in one of my projects.

That said, I fail to see how: \S and \d validate with the BNF. The way I read the spec is that a very small subset of characters support escaping.

Can you please clarify what I am missing ?

cabo commented 1 year ago

The introduction for the Appendix says "With the exception of some (often surprisingly dubious) usage of multi-character escapes". You found those exceptions. Please see Table 1 for how to handle them.

Thank you for your input!