Class NSRegularExpressionOptions


  • public final class NSRegularExpressionOptions
    extends java.lang.Object
    NSRegularExpression is a class used to represent and apply regular expressions. An instance of this class is an immutable representation of a compiled regular expression pattern and various option flags.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long AllowCommentsAndWhitespace
      Ignore whitespace and #-prefixed comments in the pattern.
      static long AnchorsMatchLines
      Allow ^ and $ to match the start and end of lines.
      static long CaseInsensitive
      Match letters in the pattern independent of case.
      static long DotMatchesLineSeparators
      Allow . to match any character, including line separators.
      static long IgnoreMetacharacters
      Treat the entire pattern as a literal string.
      static long UseUnicodeWordBoundaries
      Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
      static long UseUnixLineSeparators
      Treat only \n as a line separator (otherwise, all standard line separators are used).
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CaseInsensitive

        public static final long CaseInsensitive
        Match letters in the pattern independent of case.
        See Also:
        Constant Field Values
      • AllowCommentsAndWhitespace

        public static final long AllowCommentsAndWhitespace
        Ignore whitespace and #-prefixed comments in the pattern.
        See Also:
        Constant Field Values
      • IgnoreMetacharacters

        public static final long IgnoreMetacharacters
        Treat the entire pattern as a literal string.
        See Also:
        Constant Field Values
      • DotMatchesLineSeparators

        public static final long DotMatchesLineSeparators
        Allow . to match any character, including line separators.
        See Also:
        Constant Field Values
      • AnchorsMatchLines

        public static final long AnchorsMatchLines
        Allow ^ and $ to match the start and end of lines.
        See Also:
        Constant Field Values
      • UseUnixLineSeparators

        public static final long UseUnixLineSeparators
        Treat only \n as a line separator (otherwise, all standard line separators are used).
        See Also:
        Constant Field Values
      • UseUnicodeWordBoundaries

        public static final long UseUnicodeWordBoundaries
        Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
        See Also:
        Constant Field Values