search/
Start typing to search packages!
package_2
luau-regexp
By @scottricity
Roblox
MirroredRegExp for Luau
A regular expression library for Luau. Adapted from a regex implementation by github user Blockzez (https://github.com/Blockzez).
API
Create a regex with the new function:
RegExp.new(pattern: string, flags: string) -> RegularExpression
A resulting RegularExpression has the following methods:
RegularExpression:exec(str: string) -> MatchRegularExpression:test(str: string) -> boolean
The Match object resulting from exec has the following fields:
[1..n]- The array potion of theMatchobject contains captured groupsn- The length of the array of resulting captured groupsindex- The index in the original string where the match beginsinput- The original string passed intoexec
Flags
The following flags can be provided via the second argument to RegExp.new:
- "i" - ignoreCase
- "g" - global
- "m" - multiline
Package Details
Install command (Click to copy)
Version
0.1.0
License
MIT
Safe for commercial use
License identified from the packaged LICENSE file; the manifest declared none.
Automated license review — not legal advice.
