Regex.REFlags(3kaya)

Regex.REFlags3kaya

Flags for regular expression compilation

Usage

Regex::REFlags< >

= IgnoreCase()

| Extended()

| Multiline()

| Ungreedy()

Overview

Flags for regular expression compilation

- IgnoreCase makes the expression case-insensitive (so "^a" would match "All" and "all"

- Extended when set causes whitespace in the pattern (other than in a character class) and characters between a '#' outside a character class and the next newline character to be ignored. An escaping backslash can be used to include a whitespace or '#' character as part of the pattern.

- Multiline changes the meaning of the start '^' and end '$' characters so that as well as matching the start and end of the string, they will also match immediately after and immediately before a newline '\n' character.

- Ungreedy causes the expression and sub-expressions to find the smallest possible match, rather than the largest possible, unless a '?' is placed after the expression. For example, the pattern "a.*a" would match "aca" if ungreedy, and "acada" if greedy in the string "bacadaf".

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8

Authors

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/

License

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

From kaya 0.4.4-6.2 in Debian 8 (Jessie). Parsed by carta from the page's man source.