{"id":"scottricity/luau-regexp","name":"luau-regexp","scope":"scottricity","platform":"roblox","description":"Mirrored from the Wally registry.","version":"0.1.0","latest":"0.1.0","versions":["0.1.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":["License identified from the packaged LICENSE file; the manifest declared none."],"licenseVerified":true,"dependencies":{},"integrity":"9473d85e4b23547bd3e2dca64c55b9e2a57f0c67b8610773a86c3c931f443533","likes":0,"downloads":0,"install":"forest install scottricity/luau-regexp","url":"https://forest.dev/p/roblox/scottricity/luau-regexp","files":"https://api.forest.dev/ai/package/roblox/scottricity/luau-regexp/files","readme":"# RegExp for Luau\r\nA regular expression library for Luau. Adapted from a regex implementation by github user Blockzez (https://github.com/Blockzez).\r\n\r\n## API\r\nCreate a regex with the `new` function:\r\n`RegExp.new(pattern: string, flags: string) -> RegularExpression`\r\n\r\nA resulting RegularExpression has the following methods:\r\n* `RegularExpression:exec(str: string) -> Match`\r\n* `RegularExpression:test(str: string) -> boolean`\r\n\r\nThe `Match` object resulting from `exec` has the following fields:\r\n* `[1..n]` - The array potion of the `Match` object contains captured groups\r\n* `n` - The length of the array of resulting captured groups\r\n* `index` - The index in the original string where the match begins\r\n* `input` - The original string passed into `exec`\r\n\r\n### Flags\r\nThe following flags can be provided via the second argument to `RegExp.new`:\r\n* \"i\" - ignoreCase\r\n* \"g\" - global\r\n* \"m\" - multiline","readmeTruncated":false}