Constructor and Description |
---|
Perl5Util() |
Modifier and Type | Method and Description |
---|---|
static Struct |
find(String strPattern,
String strInput,
int offset,
boolean caseSensitive)
find occurence of a pattern in a string (same like indexOf), but dont return first ocurence , it return
struct with all information
|
static int |
indexOf(String strPattern,
String strInput,
int offset,
boolean caseSensitive)
return index of the first occurence of the pattern in input text
|
static void |
main(String[] args) |
static Array |
match(String strPattern,
String strInput,
int offset,
boolean caseSensitive) |
static String |
replace(String strInput,
String strPattern,
String replacement,
boolean caseSensitive,
boolean replaceAll)
replace the first/all occurence of given pattern
|
public Perl5Util()
public static int indexOf(String strPattern, String strInput, int offset, boolean caseSensitive) throws org.apache.oro.text.regex.MalformedPatternException
strPattern
- pattern to searchstrInput
- text to search patternoffset
- caseSensitive
- org.apache.oro.text.regex.MalformedPatternException
public static Struct find(String strPattern, String strInput, int offset, boolean caseSensitive) throws org.apache.oro.text.regex.MalformedPatternException
strPattern
- strInput
- offset
- caseSensitive
- org.apache.oro.text.regex.MalformedPatternException
public static Array match(String strPattern, String strInput, int offset, boolean caseSensitive) throws org.apache.oro.text.regex.MalformedPatternException
org.apache.oro.text.regex.MalformedPatternException
public static String replace(String strInput, String strPattern, String replacement, boolean caseSensitive, boolean replaceAll) throws org.apache.oro.text.regex.MalformedPatternException
strInput
- text to search patternstrPattern
- pattern to searchreplacement
- text to replace with patterncaseSensitive
- replaceAll
- do replace all or only oneorg.apache.oro.text.regex.MalformedPatternException
Copyright © 2015 Lucee