Skip to content

Syntax for RegExp literals #6287

Closed
@cknitt

Description

@cknitt

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions