RegexECMA262Helper
as 1:1 replacement@ThreadSafe @Deprecated public final class RhinoHelper extends Object
RegexECMA262Helper
Constructor and Description |
---|
RhinoHelper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
regexIsValid(String regex)
Deprecated.
|
static boolean |
regMatch(String regex,
String input)
Deprecated.
|
@Deprecated public static boolean regexIsValid(String regex)
RegexECMA262Helper.regexIsValid(String)
regex
- the regex to validate@Deprecated public static boolean regMatch(String regex, String input)
RegexECMA262Helper.regMatch(String, String)
Matches an input against a given regex, in the real sense
of matching, that is, the regex can match anywhere in the input. Java's
java.util.regex
makes the unfortunate mistake to make people
believe that matching is done on the whole input... Which is not true.
Also note that the regex MUST have been validated at this point
(using regexIsValid(String)
).
regex
- the regex to useinput
- the input to match against (and again, see description)