{"ok":true,"result":{"slug":"regex-tester","name":"Regex Tester","summary":"Run a JavaScript regular expression against text: every match with its position and capture groups, an optional replacement result, and a plain-English explanation of the pattern. Runs are time-limited.","description":"Test JavaScript regular expressions live: highlight every match, inspect numbered and named capture groups, toggle flags and preview replacements in your browser.","method":"POST","endpoint":"/api/v1/tools/regex-tester","plan":"free","mcpName":"regex_tester","input":{"type":"object","additionalProperties":false,"properties":{"pattern":{"type":"string","description":"The pattern without slashes, e.g. (\\d{4})-(\\d{2})-(\\d{2}). JavaScript (ECMAScript) syntax.","maxLength":2000},"flags":{"type":"string","description":"Flags from \"dgimsuvy\", each at most once; g lists every match, without g only the first.","default":"g","maxLength":8},"text":{"type":"string","description":"The text to search (up to 50,000 characters).","default":"","maxLength":50000},"replacement":{"type":"string","description":"Optional replacement string ($1, $<name>, $& supported). When given, the replaced text is returned as replaced.","maxLength":10000},"maxMatches":{"type":"integer","description":"Most matches to return (1 to 1000).","default":100,"minimum":1,"maximum":1000},"explain":{"type":"boolean","description":"Include a plain-English explanation of each part of the pattern.","default":true}},"required":["pattern"]},"example":{"pattern":"(?<year>\\d{4})-(?<month>\\d{2})","flags":"g","text":"Released 2024-03, updated 2025-11.","replacement":"$<month>/$<year>"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/regex-tester","page":"https://pithlab.com/tools/regex-tester"}}