java.lang.Object
javax0.jamal.extensions.Regex.Matcher
- All Implemented Interfaces:
javax0.jamal.api.Identified,javax0.jamal.api.Macro,javax0.jamal.api.ServiceLoaded
- Enclosing class:
- Regex
Match a string against a regular expression.
The sintax of the macro is
{@matcher name regex string}
where the name will be the name of the matcher created. This name can later be used as a user defined
macro to get the different parts of the result of the matching.
The regex is the patters used to patch.
The
This macro splits the input into three parts using InputHandler.getParts(Input). The first will be the
name of the
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax0.jamal.api.Identified
javax0.jamal.api.Identified.UndefinedNested classes/interfaces inherited from interface javax0.jamal.api.Macro
javax0.jamal.api.Macro.Stateful -
Field Summary
Fields inherited from interface javax0.jamal.api.Identified
DEFAULT_MACRO, MACRO_NAME_ARG1, MACRO_NAME_ARG2Fields inherited from interface javax0.jamal.api.Macro
FETCH -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax0.jamal.api.Macro
fetch, getId, getIds, prefetch
-
Constructor Details
-
Matcher
public Matcher()
-
-
Method Details
-
evaluate
public String evaluate(javax0.jamal.api.Input in, javax0.jamal.api.Processor processor) throws javax0.jamal.api.BadSyntax - Specified by:
evaluatein interfacejavax0.jamal.api.Macro- Throws:
javax0.jamal.api.BadSyntax
-