Searched defs:regex (Results 1 - 24 of 24) sorted by relevance

/openjdk7/langtools/test/tools/javah/
H A DVersionTest.java46 static void test(String option, String regex) { argument
56 if (!out.matches(regex))
57 throw new Error("output does not match pattern: " + regex);
/openjdk7/jdk/src/share/classes/java/util/regex/
H A DPatternSyntaxException.java26 package java.util.regex;
55 * @param regex
62 public PatternSyntaxException(String desc, String regex, int index) { argument
64 this.pattern = regex;
H A DMatchResult.java26 package java.util.regex;
H A DASCII.java26 package java.util.regex;
H A DUnicodeProp.java26 package java.util.regex;
H A DMatcher.java26 package java.util.regex;
1038 * @see java.util.regex.Matcher#useTransparentBounds(boolean)
1068 * @see java.util.regex.Matcher#hasTransparentBounds
1089 * @see java.util.regex.Matcher#useAnchoringBounds(boolean)
1114 * @see java.util.regex.Matcher#hasAnchoringBounds
1132 sb.append("java.util.regex.Matcher");
1186 * regex tries to match at that index but ^ won't match there. Subsequent
H A DPattern.java26 package java.util.regex;
1015 * @param regex
1021 public static Pattern compile(String regex) { argument
1022 return new Pattern(regex, 0);
1029 * @param regex
1046 public static Pattern compile(String regex, int flags) { argument
1047 return new Pattern(regex, flags);
1108 * Pattern.matches(regex, input);</pre></blockquote>
1113 * Pattern.compile(regex).matcher(input).matches()</pre></blockquote>
1118 * @param regex
1127 matches(String regex, CharSequence input) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xpath/regex/
H A DParseException.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
H A DREUtil.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
139 static String stripExtendedComment(String regex) { argument
140 int len = regex.length();
144 int ch = regex.charAt(offset++);
151 ch = regex.charAt(offset++);
160 if ((next = regex.charAt(offset)) == '#'
180 * <div>Usage: <KBD>com.sun.org.apache.xerces.internal.utils.regex.REUtil &lt;regex&gt; &lt;string&gt;</KBD></div>
233 System.err.println("com.sun.org.apache.xerces.internal.utils.regex.ParseException: "+pe.getMessage());
291 public static boolean matches(String regex, Strin argument
299 matches(String regex, String options, String target) argument
[all...]
H A DBMPattern.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
H A DCaseInsensitiveMap.java22 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
H A DMatch.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
H A DParserForXMLSchema.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
253 if (c == '-' && this.chardata != ']' && !firstloop) throw this.ex("parser.cc.8", this.offset-2); // if regex = '[-]' then invalid
H A DRangeToken.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
H A DRegexParser.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
73 String regex; field in class:RegexParser
99 this.resources = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.xpath.regex.message", locale);
102 this.resources = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.xpath.regex.message");
119 synchronized Token parse(String regex, int options) throws ParseException { argument
126 this.regex = regex;
128 this.regex = REUtil.stripExtendedComment(this.regex);
129 this.regexlen = this.regex
[all...]
H A DRegularExpression.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
40 * RegularExpression re = new RegularExpression(<var>regex</var>);
47 * RegularExpression re = new RegularExpression(<var>regex</var>);
58 * RegularExpression re = new RegularExpression(<var>regex</var>, "i");
63 * <p>You can specify options to <a href="#RegularExpression(java.lang.String, java.lang.String)"><code>RegularExpression(</code><var>regex</var><code>, </code><var>options</var><code>)</code></a>
64 * or <a href="#setPattern(java.lang.String, java.lang.String)"><code>setPattern(</code><var>regex</var><code>, </code><var>options</var><code>)</code></a>.
323 * after <code><a href="#matches(java.lang.String, com.sun.org.apache.xerces.internal.utils.regex.Match)">matches(String,Match)</a></code>.
432 * regex ::= ('(?' options ')')? term ('|' term)*
437 * atom ::= char | '.' | char-class | '(' regex ')' | '(?:' regex ')' | '\' [
1721 String regex; field in class:RegularExpression
2243 RegularExpression(String regex) argument
2254 RegularExpression(String regex, String options) argument
2265 RegularExpression(String regex, String options, Locale locale) argument
2269 RegularExpression(String regex, Token tok, int parens, boolean hasBackReferences, int options) argument
[all...]
H A DOp.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
H A DToken.java21 package com.sun.org.apache.xerces.internal.impl.xpath.regex;
804 throw new RuntimeException("org.apache.xerces.utils.regex.Token#getRange(): Unknown Unicode category: "+type);
/openjdk7/langtools/test/tools/javap/classfile/deps/
H A DGetDeps.java28 import java.util.regex.Pattern;
46 * -r regex restrict analysis to packages matching pattern
76 if (regex != null)
77 d.setFilter(Dependencies.getRegexFilter(Pattern.compile(regex)));
106 regex = args[++i];
133 String regex; field in class:GetDeps
/openjdk7/jdk/src/share/classes/javax/swing/
H A DRowFilter.java32 import java.util.regex.Matcher;
33 import java.util.regex.Pattern;
153 * The returned filter uses {@link java.util.regex.Matcher#find}
158 * {@link java.util.regex.Pattern} for a complete description of
161 * @param regex the regular expression to filter on
165 * @throws NullPointerException if <code>regex</code> is
169 * @throws PatternSyntaxException if <code>regex</code> is
171 * @see java.util.regex.Pattern
173 public static <M,I> RowFilter<M,I> regexFilter(String regex, argument
175 return (RowFilter<M,I>)new RegexFilter(Pattern.compile(regex),
437 RegexFilter(Pattern regex, int[] columns) argument
[all...]
/openjdk7/jdk/test/java/util/concurrent/locks/Lock/
H A DTimedAcquireLeak.java34 import java.util.regex.*;
115 static String match(String s, String regex, int group) { argument
116 Matcher matcher = Pattern.compile(regex).matcher(s);
124 final String regex =
130 regex, 1));
/openjdk7/jdk/src/share/classes/java/lang/
H A DString.java35 import java.util.regex.Matcher;
36 import java.util.regex.Pattern;
37 import java.util.regex.PatternSyntaxException;
2038 * href="../util/regex/Pattern.html#sum">regular expression</a>.
2041 * <i>str</i><tt>.matches(</tt><i>regex</i><tt>)</tt> yields exactly the
2044 * <blockquote><tt> {@link java.util.regex.Pattern}.{@link
2045 * java.util.regex.Pattern#matches(String,CharSequence)
2046 * matches}(</tt><i>regex</i><tt>,</tt> <i>str</i><tt>)</tt></blockquote>
2048 * @param regex
2057 * @see java.util.regex
2062 matches(String regex) argument
2118 replaceFirst(String regex, String replacement) argument
2161 replaceAll(String regex, String replacement) argument
2264 split(String regex, int limit) argument
2354 split(String regex) argument
[all...]
/openjdk7/jdk/test/java/util/regex/
H A DRegExTest.java38 import java.util.regex.*;
226 * of the regex syntax.
468 static void check(String regex, String input, String[] expected) { argument
470 Pattern p = Pattern.compile(regex);
485 //boundary at end of the lookbehind sub-regex should work consistently
486 //with the boundary just after the lookbehind sub-regex
1817 pattern = Pattern.compile("a thirty four character long regex");
1831 pattern = Pattern.compile(toSupplementaries("a thirty four character long regex"));
2954 * by the Pattern class when the regex is compiled.
/openjdk7/jdk/test/java/lang/ProcessBuilder/
H A DBasic.java44 import java.util.regex.Pattern;
45 import java.util.regex.Matcher;
640 private static boolean matches(String str, String regex) { argument
641 return Pattern.compile(regex).matcher(str).find();
644 private static String matchAndExtract(String str, String regex) { argument
645 Matcher matcher = Pattern.compile(regex).matcher(str);

Completed in 199 milliseconds