Module regex/flags
regex/flags
Regex flags parsing and representation.
Regex flags follow JavaScript syntax: "gi", "ms", "iu", etc.
Supported flags:
g— global: match all occurrencesi— ignoreCase: case-insensitive matchingm— multiline:^and$match line boundariess— dotAll:.matches newline charactersu— unicode: full Unicode matchingy— sticky: match from lastIndex only
Types
RegexFlags
struct
RegexFlags
Fields
| Name | Type | Description |
|---|---|---|
global | bool | |
ignore_case | bool | |
multiline | bool | |
dot_all | bool | |
unicode | bool | |
sticky | bool |
impl(RegexFlags, ...)
default : (RegexFlags) fn() -> RegexFlagsReturns: RegexFlags
parse : (RegexFlags) fn(flags_str : String) -> Result(RegexFlags, String)