--- id: regex-start name: Regex.start category: regex kind: namespace-method tokens: Regex.start sig: Regex.start(match, n) -> int tip: The start byte offset of group n, or -1 if it did not participate. order: 11 ns: Regex member: start --- Returns the byte offset where group n of match begins, or -1 if the group did not participate. Group 0 is the whole match, so Regex.start(m, 0) is where the match begins. Parameters: - `match` — a `Match` value - `n` — the group number ```ludic program Demo { entry { let m = Regex.find(" hi", "hi") print(Regex.start(m, 0)) } } ```