761 * <p> For a more precise description of the behavior of regular expression 762 * constructs, please see <a href="http://www.oreilly.com/catalog/regex3/"> 763 * <i>Mastering Regular Expressions, 3nd Edition</i>, Jeffrey E. F. Friedl, 764 * O'Reilly and Associates, 2006.</a> 765 * </p> 766 * 767 * @see java.lang.String#split(String, int) 768 * @see java.lang.String#split(String) 769 * 770 * @author Mike McCloskey 771 * @author Mark Reinhold 772 * @author JSR-51 Expert Group 773 * @since 1.4 774 * @spec JSR-51 775 */ 776 777 public final class Pattern 778 implements java.io.Serializable 779 { 780 781 /** 782 * Regular expression modifier values. Instead of being passed as 783 * arguments, they can also be passed as inline modifiers. 784 * For example, the following statements have the same effect. 785 * <pre> 786 * Pattern p1 = Pattern.compile("abc", Pattern.CASE_INSENSITIVE|Pattern.MULTILINE); 787 * Pattern p2 = Pattern.compile("(?im)abc", 0); 788 * </pre> 789 */ 790 791 /** 792 * Enables Unix lines mode. 793 * 794 * <p> In this mode, only the {@code '\n'} line terminator is recognized 795 * in the behavior of {@code .}, {@code ^}, and {@code $}. 796 * 797 * <p> Unix lines mode can also be enabled via the embedded flag 798 * expression {@code (?d)}. 799 */ 800 public static final int UNIX_LINES = 0x01; 801 802 /** 803 * Enables case-insensitive matching. 804 * 805 * <p> By default, case-insensitive matching assumes that only characters 806 * in the US-ASCII charset are being matched. Unicode-aware 807 * case-insensitive matching can be enabled by specifying the {@link 808 * #UNICODE_CASE} flag in conjunction with this flag. | 761 * <p> For a more precise description of the behavior of regular expression 762 * constructs, please see <a href="http://www.oreilly.com/catalog/regex3/"> 763 * <i>Mastering Regular Expressions, 3nd Edition</i>, Jeffrey E. F. Friedl, 764 * O'Reilly and Associates, 2006.</a> 765 * </p> 766 * 767 * @see java.lang.String#split(String, int) 768 * @see java.lang.String#split(String) 769 * 770 * @author Mike McCloskey 771 * @author Mark Reinhold 772 * @author JSR-51 Expert Group 773 * @since 1.4 774 * @spec JSR-51 775 */ 776 777 public final class Pattern 778 implements java.io.Serializable 779 { 780 781 /* 782 * Regular expression modifier values. Instead of being passed as 783 * arguments, they can also be passed as inline modifiers. 784 * For example, the following statements have the same effect. 785 * 786 * Pattern p1 = Pattern.compile("abc", Pattern.CASE_INSENSITIVE|Pattern.MULTILINE); 787 * Pattern p2 = Pattern.compile("(?im)abc", 0); 788 */ 789 790 /** 791 * Enables Unix lines mode. 792 * 793 * <p> In this mode, only the {@code '\n'} line terminator is recognized 794 * in the behavior of {@code .}, {@code ^}, and {@code $}. 795 * 796 * <p> Unix lines mode can also be enabled via the embedded flag 797 * expression {@code (?d)}. 798 */ 799 public static final int UNIX_LINES = 0x01; 800 801 /** 802 * Enables case-insensitive matching. 803 * 804 * <p> By default, case-insensitive matching assumes that only characters 805 * in the US-ASCII charset are being matched. Unicode-aware 806 * case-insensitive matching can be enabled by specifying the {@link 807 * #UNICODE_CASE} flag in conjunction with this flag. |