{"id":"dig1t/luau-regexp","name":"luau-regexp","scope":"dig1t","platform":"roblox","description":"Modules and Libraries for development in Roblox","version":"0.2.1","latest":"0.2.1","versions":["0.2.1"],"license":"Apache-2.0","licenseRating":"safe","licenseCaveats":["Modified files must carry a notice of changes. If the package ships a NOTICE file, its attributions must be preserved."],"licenseVerified":false,"dependencies":{},"integrity":"7dc93bdb36525e9b9890d91666221988ea0884b42fd4cadcf1245f137c2221a8","likes":0,"downloads":0,"install":"forest install dig1t/luau-regexp","url":"https://forest.dev/p/roblox/dig1t/luau-regexp","files":"https://api.forest.dev/ai/package/roblox/dig1t/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}