DocsPlaygroundBlogCommunityPackages
  • Playground
  • Blog
  • Community
  • Packages
  • X
  • Bluesky
  • GitHub
  • Forum
Language ManualAPISyntax LookupReact

Syntax Lookup

Enter some language construct you want to know more about.
This is the regular expression extension point.

Deprecated in favor of native regular expression syntax in v12+

%re is used to create JavaScript regular expressions.

ReScriptJS Output
let regex = %re("/^hello/")
let result = regex->Re.test("hello world")

References

  • Regular Expressions

  • Extension Point Attributes

  • RegExp API

© 2025 The ReScript Project

About
  • Community
  • ReScript Association
Find us on