{"category":"text","endpoint":"https://setget.net/v1/tools/regex-extract","examples":[{"input":{"group":"1","pattern":"#(\\d+)","text":"Fix #123 and #456, see #123","unique":true},"output":{"count":2,"matches":["123","456"],"truncated":false}},{"input":{"pattern":"\\b\\w+@\\w+\\.\\w+","text":"sam@example.com, alex@example.org"},"output":{"count":2,"matches":["sam@example.com","alex@example.org"],"truncated":false},"title":"Whole matches"}],"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"},"group":{"default":"0","description":"Capture group to return, by number or name. 0 is the whole match.","maxLength":100,"type":"string"},"pattern":{"description":"The regular expression (Python syntax).","examples":["#(\\d+)"],"maxLength":2000,"type":"string"},"text":{"description":"The text to search.","examples":["Fix #123 and #456, see #123"],"type":"string"},"unique":{"default":false,"description":"Return each distinct value once, in order of first appearance.","type":"boolean"}},"required":["pattern","text"],"type":"object"},"keywords":["regex","extract","regular expression","find all","findall","capture group","grep","scrape text"],"related":["regex-test","regex-replace","extract-emails-urls"],"slug":"regex-extract","summary":"Pull every match of a regular expression out of text as a simple list, or just one capture group.","tier":"inline","title":"Regex extractor","url":"https://setget.net/tools/regex-extract"}
