--- id: regex-find name: Regex.find category: regex kind: namespace-method tokens: Regex.find sig: Regex.find(text, pattern) -> Match tip: The first match of the pattern in the text (a Match, or null if none). order: 5 ns: Regex member: find --- Searches text and returns the first Match — carrying the overall span and every capture group — or null if the pattern does not match. Read groups with Regex.group and spans with Regex.start / Regex.end. Parameters: - `text` — the string to search - `pattern` — the regular expression source ```ludic program Demo { entry { let m = Regex.find("name: Alice", "(\\w+): (\\w+)") if Regex.ok(m) { print(1) } } } ```