Element

public indirect enum Element

Elements are components used to build Pattern

  • any

    any character

    Declaration

    Swift

    case any
  • space characters

    Declaration

    Swift

    case space
  • characters except spaces

    Declaration

    Swift

    case notSpace
  • characters from ‘0’ to ‘9’

    Declaration

    Swift

    case digit
  • characters except ‘0’ to ‘9’

    Declaration

    Swift

    case notDigit
  • character ‘a’ to ‘z’

    Declaration

    Swift

    case word
  • characters except ‘a’ to ‘z’

    Declaration

    Swift

    case notWord
  • characters ‘\n’, ‘\r’, or ‘\r\n’

    Declaration

    Swift

    case newLine
  • character ‘“’

    Declaration

    Swift

    case quote
  • character

    Declaration

    Swift

    case apostrophe
  • character groups to match from

    Declaration

    Swift

    case char(in: String)
  • character groups to not match from

    Declaration

    Swift

    case charNot(in: String)
  • start character of the current line

    Declaration

    Swift

    case start
  • end

    end character of the current line

    Declaration

    Swift

    case end
  • first character of the input anchor

    Declaration

    Swift

    case firstInInput
  • last character of the input anchor

    Declaration

    Swift

    case lastInInput
  • word and non-word boundary

    Declaration

    Swift

    case boundary
  • not at the boundary word and non-word characters

    Declaration

    Swift

    case notBoundary
  • match the same sequence as the last captured group

    Declaration

    Swift

    case endOfPreviousMatch
  • plain text

    Declaration

    Swift

    case text(String)
  • repeat the given element with given times

    Declaration

    Swift

    case repeating(Element, times: RepeatType)
  • match any one of the sequence elements

    Declaration

    Swift

    case either([Element])
  • a simple sequence of elements

    Declaration

    Swift

    case sequence([Element])
  • a sequence of elements to be treated like a element for operations

    Declaration

    Swift

    case section(Element)
  • a sequence of elements that is captured a group

    Declaration

    Swift

    case capture(Element)
  • a sequence of elements to match atomically

    Declaration

    Swift

    case atomic(Element)
  • Zero-width lookahead assertion

    Declaration

    Swift

    case lookAhead(Element)
  • Zero-width negative lookahead assertion

    Declaration

    Swift

    case lookAheadInversed(Element)
  • Zero-width lookbehind assertion

    Declaration

    Swift

    case lookBehind(Element)
  • Zero-width negative lookbehind assertion

    Declaration

    Swift

    case lookBehindInversed(Element)
  • fragment for skip any number of any characters

    Declaration

    Swift

    case skip
  • any number of space characters

    Declaration

    Swift

    case spaces
  • any number of word characters

    Declaration

    Swift

    case words
  • set the given config settings

    Declaration

    Swift

    case setConfig(Config)
  • reset the given config settings

    Declaration

    Swift

    case resetConfig(Config)
  • characters specially handled by the matcher

    See more

    Declaration

    Swift

    public enum SpecialCharacter
  • Types of reating functions

    See more

    Declaration

    Swift

    public enum RepeatType
  • Statergy enumeration for how data elements should be gathered

    See more

    Declaration

    Swift

    public enum CollectionStatergy
  • Settings used to configure the match behavior

    See more

    Declaration

    Swift

    public struct Config: OptionSet
  • Declaration

    Swift

    public var description: String
  • describes the pattern in steps of easy to read sentences

    Declaration

    Swift

    var steps: String