1Regex.REFlags(3kaya) Kaya module reference Regex.REFlags(3kaya)
2
3
4
6 Regex::REFlags - Flags for regular expression compilation
7
9 Regex::REFlags< >
10
11
12 = IgnoreCase()
13
14
15 | Extended()
16
17
18 | Multiline()
19
20
21 | Ungreedy()
22
24 Flags for regular expression compilation
25
26
27 - IgnoreCase makes the expression case-insensitive (so "^a" would match
28 "All" and "all"
29
30
31 - Extended when set causes whitespace in the pattern (other than in a
32 character class) and characters between a '#' outside a character class
33 and the next newline character to be ignored. An escaping backslash can
34 be used to include a whitespace or '#' character as part of the pattern.
35
36
37 - Multiline changes the meaning of the start '^' and end '$' characters
38 so that as well as matching the start and end of the string, they will
39 also match immediately after and immediately before a newline '\n' char‐
40 acter.
41
42
43 - Ungreedy causes the expression and sub-expressions to find the smallest
44 possible match, rather than the largest possible, unless a '?' is placed
45 after the expression. For example, the pattern "a.*a" would match "aca"
46 if ungreedy, and "acada" if greedy in the string "bacadaf".
47
49 Kaya standard library by Edwin Brady, Chris Morris and others
50 (kaya@kayalang.org). For further information see http://kayalang.org/
51
53 The Kaya standard library is free software; you can redistribute it
54 and/or modify it under the terms of the GNU Lesser General Public
55 License (version 2.1 or any later version) as published by the Free
56 Software Foundation.
57
59 Regex.compile (3kaya)
60
61
62
63Kaya December 2010 Regex.REFlags(3kaya)