4 ( regex : regex_compile("ne{2}dle"),
5 str : "his hay needle stack -- my hay needle stack -- her hay needle stack",
9 regex_match_pos(regex, str);
12 regex_match_pos("ne{2}dle", str);
15 regex_match_pos("ne{2}dle", str, 25, 44);
18 regex_match_pos("ne{2}dle", str, 32, 38);
21 regex_match_pos("ne{2}dle", str, 25, 37);
24 regex_match_pos("ne{2}dle", str, 25);
27 regex_match("ne{2}dle", "hay needle stack");
30 regex_split("[,;]+", "split,pea;;;soup");
31 ["split", "pea", "soup"];
33 regex_subst_first("ty", "t.", "liberte egalite fraternite");
34 "liberty egalite fraternite";
36 regex_subst("ty", "t.", "liberte egalite fraternite");
37 "liberty egality fratyrnity";
39 regex_split("\\D+", "13. 3. 2009 13:03 Uhr");
40 ["13", "3", "2009", "13", "03"];
42 string_to_regex(". :");
45 (remvalue(regex, str), 0);