{"category":"text","endpoint":"https://setget.net/v1/tools/regex-test","examples":[{"input":{"pattern":"(?P<year>\\d{4})-(\\d{2})","text":"From 2024-01 to 2025-12"},"output":{"count":2,"matched":true,"matches":[{"end":12,"groups":["2024","01"],"match":"2024-01","named":{"year":"2024"},"start":5},{"end":23,"groups":["2025","12"],"match":"2025-12","named":{"year":"2025"},"start":16}],"truncated":false}},{"input":{"flags":"i","pattern":"^hello","text":"Hello there"},"output":{"count":1,"matched":true,"matches":[{"end":5,"groups":[],"match":"Hello","named":{},"start":0}],"truncated":false},"title":"Ignoring case"}],"input_schema":{"additionalProperties":false,"properties":{"flags":{"default":"","description":"Letters that switch options on: i (ignore case), m (^ and $ match at each line), s (dot matches line breaks), x (allow spaces and comments).","maxLength":8,"type":"string"},"pattern":{"description":"The regular expression (Python syntax).","examples":["(?P<year>\\d{4})-(\\d{2})"],"maxLength":2000,"type":"string"},"text":{"description":"The text to search.","examples":["From 2024-01 to 2025-12"],"type":"string"}},"required":["pattern","text"],"type":"object"},"keywords":["regex","regular expression","regex tester","regexp","pattern match","test regex","capture groups","regex101"],"related":["regex-extract","regex-replace","find-replace"],"slug":"regex-test","summary":"Test a regular expression against text and see every match with its position and groups.","tier":"inline","title":"Regex tester","url":"https://setget.net/tools/regex-test"}
