Skip to Content
Skip to Content

Regular Expression

zune.regex


A library to do regular expressions in Luau.

Powered by PCRE2 .

Functions

create

Compiles a regular expression pattern. Supported flags:

  • 'i': Case insensitive
  • 'm': Multiline
  • 'u': Unicode
create(pattern: string | buffer, flags: string?): Regex

Parameters

  • pattern: string | buffer - The pattern to compile.
  • flags: string? - The flags to use.

Throws

  • Regex Error
  • Memory Error
Last updated on