A C D E F G H I J L M N O P R S T U V W X

A

ACCEPT_INCOMPLETE - Static variable in class jregex.Matcher
Experimental option; if a text ends up before the end of a pattern,report a match.
accept(File, String) - Method in class jregex.util.io.WildcardFilter
 
ANCHOR_END - Static variable in class jregex.Matcher
The same effect as "$" without REFlags.MULTILINE.
ANCHOR_LASTMATCH - Static variable in class jregex.Matcher
The same effect as "\\G".
ANCHOR_START - Static variable in class jregex.Matcher
The same effect as "^" without REFlags.MULTILINE.
ANY_CHAR - Static variable in class jregex.WildcardPattern
 
append(char) - Method in interface jregex.TextBuffer
 
append(char[], int, int) - Method in interface jregex.TextBuffer
 
append(String) - Method in interface jregex.TextBuffer
 
appendSubstitution(MatchResult, TextBuffer) - Method in interface jregex.Substitution
 
appendSubstitution(MatchResult, TextBuffer) - Method in class jregex.PerlSubstitution
 

C

charAt(int) - Method in interface jregex.MatchResult
 
charAt(int) - Method in class jregex.Matcher
 
charAt(int, int) - Method in interface jregex.MatchResult
 
charAt(int, int) - Method in class jregex.Matcher
 
compile(String, int) - Method in class jregex.Pattern
 
compile(String, String, String, int) - Method in class jregex.WildcardPattern
 
convertSpecials(String, String, String) - Static method in class jregex.WildcardPattern
 
count() - Method in interface jregex.MatchIterator
 

D

DEFAULT - Static variable in interface jregex.REFlags
All the foolowing options turned off
defaultInstantiator - Static variable in class jregex.util.io.ListEnumerator
 
directory() - Method in class jregex.util.io.PathPattern
Deprecated. Is meaningless with variable paths (since v.1.2)
DOTALL - Static variable in interface jregex.REFlags
Affects the behaviour of dot(".") tag.

E

end() - Method in interface jregex.MatchResult
 
end() - Method in class jregex.Matcher
 
end(int) - Method in interface jregex.MatchResult
 
end(int) - Method in class jregex.Matcher
 
enumerateFiles() - Method in class jregex.util.io.PathPattern
 

F

files() - Method in class jregex.util.io.PathPattern
 
find() - Method in class jregex.Matcher
Searches through a target for a matching substring, starting from just after the end of last match.
find() - Method in class jregex.util.io.ListEnumerator
 
find(int) - Method in class jregex.Matcher
Searches through a target for a matching substring, starting from just after the end of last match.
findAll() - Method in class jregex.Matcher
The same as findAll(int), but with default behaviour;
findAll(int) - Method in class jregex.Matcher
Returns an iterator over the matches found by subsequently calling find(options), the search starts from the zero position.

G

getGroup(int, StringBuffer) - Method in interface jregex.MatchResult
 
getGroup(int, StringBuffer) - Method in class jregex.Matcher
 
getGroup(int, TextBuffer) - Method in interface jregex.MatchResult
 
getGroup(int, TextBuffer) - Method in class jregex.Matcher
 
getGroup(String, StringBuffer) - Method in interface jregex.MatchResult
 
getGroup(String, StringBuffer) - Method in class jregex.Matcher
 
getGroup(String, TextBuffer) - Method in interface jregex.MatchResult
 
getGroup(String, TextBuffer) - Method in class jregex.Matcher
 
group(int) - Method in interface jregex.MatchResult
 
group(int) - Method in class jregex.Matcher
 
group(String) - Method in interface jregex.MatchResult
 
group(String) - Method in class jregex.Matcher
 
groupCount() - Method in class jregex.Pattern
How many capturing groups this expression includes?
groupCount() - Method in interface jregex.MatchResult
 
groupCount() - Method in class jregex.Matcher
 
groupId(String) - Method in class jregex.Pattern
Get numeric id for a group name.
groups() - Method in class jregex.Matcher
 
groupv() - Method in class jregex.Matcher
 

H

hasMore() - Method in interface jregex.MatchIterator
 
hasMore() - Method in class jregex.RETokenizer
 
hasMoreElements() - Method in class jregex.RETokenizer
 

I

IGNORE_CASE - Static variable in interface jregex.REFlags
Pattern "a" matches both "a" and "A".
IGNORE_SPACES - Static variable in interface jregex.REFlags
Affects how the space characters are interpeted in the expression.
instantiate(File, String) - Method in interface jregex.util.io.ListEnumerator.Instantiator
 
isCaptured() - Method in interface jregex.MatchResult
 
isCaptured() - Method in class jregex.Matcher
 
isCaptured(int) - Method in interface jregex.MatchResult
 
isCaptured(int) - Method in class jregex.Matcher
 
isCaptured(String) - Method in interface jregex.MatchResult
 
isCaptured(String) - Method in class jregex.Matcher
 
isEmptyEnabled() - Method in class jregex.RETokenizer
 
isStart() - Method in class jregex.Matcher
Deprecated. Replaced by isPrefix()

J

jregex - package jregex
 
jregex.util.io - package jregex.util.io
 

L

length() - Method in interface jregex.MatchResult
 
length() - Method in class jregex.Matcher
 
length(int) - Method in interface jregex.MatchResult
 
length(int) - Method in class jregex.Matcher
 
ListEnumerator - class jregex.util.io.ListEnumerator.
 
ListEnumerator.Instantiator - interface jregex.util.io.ListEnumerator.Instantiator.
 
ListEnumerator(File, ListEnumerator.Instantiator) - Constructor for class jregex.util.io.ListEnumerator
 
ListEnumerator(File, String[], ListEnumerator.Instantiator) - Constructor for class jregex.util.io.ListEnumerator
 

M

main(String[]) - Static method in class jregex.RETokenizer
 
main(String[]) - Static method in class jregex.util.io.PathPattern
 
MATCH - Static variable in interface jregex.MatchResult
 
Matcher - class jregex.Matcher.
Matcher instance is an automaton that actually performs matching.
matcher() - Method in class jregex.Pattern
Returns a targetless matcher.
matcher(char[], int, int) - Method in class jregex.Pattern
Returns a matcher for a specified region.
matcher(MatchResult, int) - Method in class jregex.Pattern
Returns a matcher for a match result (in a performance-friendly way).
matcher(MatchResult, String) - Method in class jregex.Pattern
Just as above, yet with symbolic group name.
matcher(Reader, int) - Method in class jregex.Pattern
Returns a matcher taking a text stream as target.
matcher(String) - Method in class jregex.Pattern
Returns a matcher for a specified string.
matches() - Method in class jregex.Matcher
Tells whether a current target matches the whole pattern.
matches(String) - Method in class jregex.Pattern
A shorthand for Pattern.matcher(String).matches().
matches(String) - Method in class jregex.Matcher
Just a combination of setTarget(String) and matches().
matchesPrefix() - Method in class jregex.Matcher
Tells whether the entire target matches the beginning of the pattern.
MatchIterator - interface jregex.MatchIterator.
 
MatchResult - interface jregex.MatchResult.
 
MULTILINE - Static variable in interface jregex.REFlags
Affects the behaviour of "^" and "$" tags.

N

names() - Method in class jregex.util.io.PathPattern
Deprecated. Is meaningless with variable paths (since v.1.2)
nextElement() - Method in class jregex.RETokenizer
 
nextMatch() - Method in interface jregex.MatchIterator
 
nextToken() - Method in class jregex.RETokenizer
 

O

Optimizer - class jregex.Optimizer.
 

P

PathPattern - class jregex.util.io.PathPattern.
 
PathPattern(File, String, boolean) - Constructor for class jregex.util.io.PathPattern
 
PathPattern(File, String, int) - Constructor for class jregex.util.io.PathPattern
 
PathPattern(String) - Constructor for class jregex.util.io.PathPattern
 
PathPattern(String, boolean) - Constructor for class jregex.util.io.PathPattern
 
PathPattern(String, int) - Constructor for class jregex.util.io.PathPattern
 
Pattern - class jregex.Pattern.
A handle for a precompiled regular expression.
To match a regular expression myExpr against a text myString one should first create a Pattern object: Pattern p=new Pattern(myExpr); then obtain a Matcher object: Matcher matcher=p.matcher(myText); The latter is an automaton that actually performs a search.
pattern() - Method in interface jregex.MatchResult
 
pattern() - Method in class jregex.Matcher
 
Pattern() - Constructor for class jregex.Pattern
 
Pattern(String) - Constructor for class jregex.Pattern
Compiles an expression with default flags.
Pattern(String, int) - Constructor for class jregex.Pattern
Compiles a regular expression using REFlags.
Pattern(String, String) - Constructor for class jregex.Pattern
Compiles a regular expression using Perl5-style flags.
PatternSyntaxException - exception jregex.PatternSyntaxException.
Is thrown when Pattern constructor's argument doesn't conform the Perl5 regular expression syntax.
PatternSyntaxException(String) - Constructor for class jregex.PatternSyntaxException
 
PerlSubstitution - class jregex.PerlSubstitution.
An implementation of the Substitution interface.
PerlSubstitution(String) - Constructor for class jregex.PerlSubstitution
 
PREFIX - Static variable in interface jregex.MatchResult
 
prefix() - Method in interface jregex.MatchResult
 
prefix() - Method in class jregex.Matcher
 
proceed() - Method in class jregex.Matcher
Continues to search from where the last search left off.
proceed(int) - Method in class jregex.Matcher
Continues to search from where the last search left off using specified options: Matcher m=new Pattern("\\w+").matcher("abc"); while(m.proceed(0)){ System.out.println(m.group(0)); } Output: abc ab a bc b c For example, let's find all odd nubmers occuring in a text: Matcher m=new Pattern("\\d+").matcher("123"); while(m.proceed(0)){ String match=m.group(0); if(isOdd(Integer.parseInt(match))) System.out.println(match); } static boolean isOdd(int i){ return (i&1)>0; } This outputs: 123 1 23 3 Note that using find() method we would find '123' only.

R

REFlags - interface jregex.REFlags.
 
replace(char[], int, int) - Method in class jregex.Replacer
 
replace(char[], int, int, StringBuffer) - Method in class jregex.Replacer
 
replace(char[], int, int, TextBuffer) - Method in class jregex.Replacer
 
replace(char[], int, int, Writer) - Method in class jregex.Replacer
 
replace(Matcher, Substitution, TextBuffer) - Static method in class jregex.Replacer
Replaces all occurences of a matcher's pattern in a matcher's target by a given substitution appending the result to a buffer.
The substitution starts from current matcher's position, current match not included.
replace(Matcher, Substitution, Writer) - Static method in class jregex.Replacer
 
replace(MatchResult, int) - Method in class jregex.Replacer
 
replace(MatchResult, int, StringBuffer) - Method in class jregex.Replacer
 
replace(MatchResult, int, TextBuffer) - Method in class jregex.Replacer
 
replace(MatchResult, int, Writer) - Method in class jregex.Replacer
 
replace(MatchResult, String, StringBuffer) - Method in class jregex.Replacer
 
replace(MatchResult, String, TextBuffer) - Method in class jregex.Replacer
 
replace(MatchResult, String, Writer) - Method in class jregex.Replacer
 
replace(Reader, int) - Method in class jregex.Replacer
 
replace(Reader, int, StringBuffer) - Method in class jregex.Replacer
 
replace(Reader, int, TextBuffer) - Method in class jregex.Replacer
 
replace(Reader, int, Writer) - Method in class jregex.Replacer
 
replace(String) - Method in class jregex.Replacer
 
replace(String, StringBuffer) - Method in class jregex.Replacer
 
replace(String, TextBuffer) - Method in class jregex.Replacer
 
replace(String, Writer) - Method in class jregex.Replacer
 
Replacer - class jregex.Replacer.
The Replacer class suggests some methods to replace occurences of a pattern either by a result of evaluation of a perl-like expression, or by a plain string, or according to a custom substitution model, provided as a Substitution interface implementation.
A Replacer instance may be obtained either using Pattern.replacer(...) method, or by constructor: Pattern p=new Pattern("\\w+"); Replacer perlExpressionReplacer=p.replacer("[$&]"); //or another way to do the same Substitution myOwnModel=new Substitution(){ public void appendSubstitution(MatchResult match,TextBuffer tb){ tb.append('['); match.getGroup(MatchResult.MATCH,tb); tb.append(']'); } } Replacer myVeryOwnReplacer=new Replacer(p,myOwnModel); The second method is much more verbose, but gives more freedom.
Replacer(Pattern, String) - Constructor for class jregex.Replacer
 
Replacer(Pattern, String, boolean) - Constructor for class jregex.Replacer
 
Replacer(Pattern, Substitution) - Constructor for class jregex.Replacer
 
replacer(String) - Method in class jregex.Pattern
Returns a replacer of a pattern by specified perl-like expression.
replacer(Substitution) - Method in class jregex.Pattern
Returns a replacer will substitute all occurences of a pattern through applying a user-defined substitution model.
reset() - Method in class jregex.RETokenizer
 
RETokenizer - class jregex.RETokenizer.
The Tokenizer class suggests a methods to break a text into tokens using occurences of a pattern as delimiters.
RETokenizer(Matcher, boolean) - Constructor for class jregex.RETokenizer
 
RETokenizer(Pattern, char[], int, int) - Constructor for class jregex.RETokenizer
 
RETokenizer(Pattern, Reader, int) - Constructor for class jregex.RETokenizer
 
RETokenizer(Pattern, String) - Constructor for class jregex.RETokenizer
 

S

setEmptyEnabled(boolean) - Method in class jregex.RETokenizer
 
setPosition(int) - Method in class jregex.Matcher
Allows to set a position the subsequent find()/find(int) will start from.
setSubstitution(String, boolean) - Method in class jregex.Replacer
 
setTarget(char[], int, int) - Method in class jregex.Matcher
Supplies a text to search in/match with, as a part of char array.
setTarget(char[], int, int, boolean) - Method in class jregex.Matcher
For wise people only.
setTarget(Matcher, int) - Method in class jregex.Matcher
This method allows to efficiently pass data between matchers.
setTarget(Reader, int) - Method in class jregex.Matcher
Supplies a text to search in/match with through a stream.
setTarget(String) - Method in class jregex.Matcher
Supplies a text to search in/match with.
setTarget(String, int, int) - Method in class jregex.Matcher
Supplies a text to search in/match with, as a part of String.
skip() - Method in class jregex.Matcher
Sets the current search position just after the end of last match.
split() - Method in class jregex.RETokenizer
 
start() - Method in interface jregex.MatchResult
 
start() - Method in class jregex.Matcher
 
start(int) - Method in interface jregex.MatchResult
 
start(int) - Method in class jregex.Matcher
 
startsWith(String) - Method in class jregex.Pattern
A shorthand for Pattern.matcher(String).matchesPrefix().
Substitution - interface jregex.Substitution.
 
SUFFIX - Static variable in interface jregex.MatchResult
 
suffix() - Method in interface jregex.MatchResult
 
suffix() - Method in class jregex.Matcher
 

T

TARGET - Static variable in interface jregex.MatchResult
 
target() - Method in interface jregex.MatchResult
 
target() - Method in class jregex.Matcher
 
targetChars() - Method in interface jregex.MatchResult
 
targetChars() - Method in class jregex.Matcher
 
targetEnd() - Method in interface jregex.MatchResult
 
targetEnd() - Method in class jregex.Matcher
 
targetStart() - Method in interface jregex.MatchResult
 
targetStart() - Method in class jregex.Matcher
 
TextBuffer - interface jregex.TextBuffer.
 
THRESHOLD - Static variable in class jregex.Optimizer
 
tokenizer(char[], int, int) - Method in class jregex.Pattern
Tokenizes a specified region by an occurences of the pattern.
tokenizer(Reader, int) - Method in class jregex.Pattern
Tokenizes a specified region by an occurences of the pattern.
tokenizer(String) - Method in class jregex.Pattern
Tokenizes a text by an occurences of the pattern.
toString_d() - Method in class jregex.Pattern
Returns a less or more readable representation of a bytecode for the pattern.
toString_d() - Method in class jregex.Matcher
 
toString() - Method in class jregex.Pattern
 
toString() - Method in class jregex.WildcardPattern
 
toString() - Method in class jregex.Matcher
 
toString() - Method in class jregex.PerlSubstitution
 
toString() - Method in class jregex.util.io.PathPattern
 

U

UNICODE - Static variable in interface jregex.REFlags
Affects whether the predefined classes("\d","\s","\w",etc) in the expression are interpreted as belonging to Unicode.

V

value(MatchResult) - Method in class jregex.PerlSubstitution
 

W

WildcardFilter - class jregex.util.io.WildcardFilter.
 
WildcardFilter(String) - Constructor for class jregex.util.io.WildcardFilter
 
WildcardFilter(String, boolean) - Constructor for class jregex.util.io.WildcardFilter
 
WildcardPattern - class jregex.WildcardPattern.
Simpified, command-prompt style pattern: ?
WildcardPattern() - Constructor for class jregex.WildcardPattern
 
WildcardPattern(String) - Constructor for class jregex.WildcardPattern
 
WildcardPattern(String, boolean) - Constructor for class jregex.WildcardPattern
 
WildcardPattern(String, int) - Constructor for class jregex.WildcardPattern
 
WildcardPattern(String, String, int) - Constructor for class jregex.WildcardPattern
 
WORD_CHAR - Static variable in class jregex.WildcardPattern
 
wrap(StringBuffer) - Static method in class jregex.Replacer
 
wrap(Writer) - Static method in class jregex.Replacer
 

X

XML_SCHEMA - Static variable in interface jregex.REFlags
Turns on the compatibility with XML Schema regular expressions.

A C D E F G H I J L M N O P R S T U V W X