all the rest - matches itself.
Each wildcard takes a capturing group withing a pattern.
- See Also:
Pattern
,
Serialized Form
Method Summary |
protected void |
compile(java.lang.String wc,
java.lang.String wcClass,
java.lang.String specials,
int flags)
|
protected static java.lang.String |
convertSpecials(java.lang.String s,
java.lang.String wcClass,
java.lang.String specials)
|
java.lang.String |
toString()
|
Methods inherited from class jregex.Pattern |
compile, groupCount, groupId, matcher, matcher, matcher, matcher, matcher, matcher, matches, replacer, replacer, startsWith, tokenizer, tokenizer, tokenizer, toString_d |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WORD_CHAR
public static final java.lang.String WORD_CHAR
- See Also:
- Constant Field Values
ANY_CHAR
public static final java.lang.String ANY_CHAR
- See Also:
- Constant Field Values
WildcardPattern
public WildcardPattern(java.lang.String wc)
- Parameters:
wc
- The pattern
WildcardPattern
public WildcardPattern(java.lang.String wc,
boolean icase)
- Parameters:
wc
- The patternicase
- If true, the pattern is case-insensitive.
WildcardPattern
public WildcardPattern(java.lang.String wc,
int flags)
- Parameters:
wc
- The patternflags
- The bitwise OR of any of REFlags.* . The only meaningful
flags are REFlags.IGNORE_CASE and REFlags.DOTALL (the latter allows
the wildcards to match the EOL characters).
WildcardPattern
public WildcardPattern(java.lang.String wc,
java.lang.String wcClass,
int flags)
- Parameters:
wc
- The patternwcClass
- The wildcard class, could be any of WORD_CHAR or ANY_CHARflags
- The bitwise OR of any of REFlags.* . The only meaningful
flags are REFlags.IGNORE_CASE and REFlags.DOTALL (the latter allows
the wildcards to match the EOL characters).
WildcardPattern
protected WildcardPattern()
convertSpecials
protected static java.lang.String convertSpecials(java.lang.String s,
java.lang.String wcClass,
java.lang.String specials)
compile
protected void compile(java.lang.String wc,
java.lang.String wcClass,
java.lang.String specials,
int flags)
toString
public java.lang.String toString()
- Overrides:
toString
in class Pattern
Copyright © 2002-2007 JRuby Team. All Rights Reserved.