Options
public struct Options : OptionSet
These constants define the regular expression options. These constants are used by init(pattern:options:)
.
-
All matches are case-insensitive.
Declaration
Swift
public static let caseInsensitive: Options
-
Ignore whitespace and #-prefixed comments in the pattern.
Declaration
Swift
public static let allowCommentsAndWhitespace: Options
-
Treat the entire pattern as a literal string.
Declaration
Swift
public static let ignoreMetacharacters: Options
-
Allow . to match any character, including line separators.
Declaration
Swift
public static let dotMatchesLineSeparators: Options
-
Allow ^ and $ to match the start and end of lines.
Declaration
Swift
public static let anchorsMatchLines: Options
-
Treat only \n as a line separator (otherwise, all standard line separators are used).
Declaration
Swift
public static let useUnixLineSeparators: Options
-
Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
Declaration
Swift
public static let useUnicodeWordBoundaries: Options
-
Declaration
Swift
public let rawValue: UInt8
-
Declaration
Swift
public init(rawValue: UInt8)