Closed cknitt closed 4 months ago
JS has the following syntax for RegExp literals:
const myRegExp = /ab+c/;
In ReScript, this would currently be expressed as
let myRegExp = %re("/ab+c/")
It would be nice if ReScript also had dedicated syntax for regexp literals, if possible identical to the JS version:
let myRegExp = /ab+c/
May I add regex support for extended x flag (currently Stage 3) with flexible whitespace and comments 🙏🏼 https://github.com/tc39/proposal-regexp-modifiers https://github.com/tc39/proposal-regexp-x-mode
x
JS has the following syntax for RegExp literals:
In ReScript, this would currently be expressed as
It would be nice if ReScript also had dedicated syntax for regexp literals, if possible identical to the JS version: