RegexPattern - linhay/Stem GitHub Wiki

RegexPattern

public enum RegexPattern

Enumeration Cases

none

case none

ipv4

case ipv4

url

case url

phone

case phone

email

case email

number

case number(equal: Int)

numbers

case numbers(low: Int, upper: Int)

isPositiveInteger

case isPositiveInteger

double

case double(prefix: Int, suffix: Int)

custom

case custom(str: String)

Properties

pattern

var pattern: String

Methods

==(lsh:rsh:)

static func ==(lsh: RegexPattern, rsh: RegexPattern) -> Bool