Search

Lib.rs

› Web programming | Text processing › swc
#regex #swc #javascript #javascript-compiler #browser #reg-exp

swc_ecma_regexp

ECMAScript regular expressions

by Donny/강동윤, SWC Bot, magic-akari, kdy1997 and 90 contributors

  • Install
  • API reference
  • GitHub repo (swc-project)
  • Documentation (rustdoc.swc.rs)
  • Home (swc.rs)

9 releases (breaking)

0.7.0 Nov 27, 2025
0.5.0 Oct 28, 2025
0.3.0 Jul 13, 2025

#2842 in Web programming

Download history 111/week @ 2025-10-20 69/week @ 2025-10-27 353/week @ 2026-01-26

353 downloads per month
Used in 28 crates (2 directly)

Apache-2.0

1.5MB
31K SLoC

RegExp

Implements ECMAScript® 2024 Language Specification

  • https://tc39.es/ecma262/2024/multipage/ecmascript-language-lexical-grammar.html#sec-literals-regular-expression-literals
  • https://tc39.es/ecma262/2024/multipage/text-processing.html#sec-regexp-regular-expression-objects
  • https://tc39.es/ecma262/2024/multipage/additional-ecmascript-features-for-web-browsers.html#sec-regular-expressions-patterns

And, Stage 4 proposals

  • https://github.com/tc39/proposal-duplicate-named-capturing-groups
  • https://github.com/tc39/proposal-regexp-modifiers

References

https://github.com/oxc-project/oxc/blob/3efc25fdebe4e02331f47767a74855f1d0d2bb15/crates/oxc_regular_expression

Dependencies

~12–16MB
~190K SLoC

  • phf 0.11.2+macros
  • rustc-hash 2.0
  • swc_atoms 9.0
  • swc_common 18.0
  • swc_ecma_regexp_ast
  • swc_ecma_regexp_common
  • swc_ecma_regexp_visit
  • unicode-id-start
  • dev serde

Other feature

  • debug
Related: swc_ecma_loader, swc_ecma_visit, swc_macros_common, swc_ecma_codegen, swc_core, swc, swc_atoms, swc_babel_ast, swc_babel_compat, swc_babel_visit, swc_cli, swc_bundler, swc_common, ast_node, better_scoped_tls, binding_macros, dbg-swc, enum_kind, from_variant, hstr
See also: boa_engine, boa_cli, tokio_with_wasm, swc_ecma_parser_macros, swc_ecma_regexp_common

Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski. It contains data from multiple sources, including heuristics, and manually curated data. Content of this page is not necessarily endorsed by the authors of the crate. This site is not affiliated with nor endorsed by the Rust Project. If something is missing or incorrect, please file a bug.