|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.text.extractors.RegexpExtractor
Text extractor which extracts text from all parenthetical groups defined in the driving regular expression.
| Constructor Summary | |
RegexpExtractor(java.lang.String regexp,
boolean isPerLine)
Creates a new instance of RegexpExtractor. |
|
| Method Summary | |
java.lang.String[] |
extractText(java.lang.String text)
Extracts fragments of text from the input text document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RegexpExtractor(java.lang.String regexp,
boolean isPerLine)
regexp - regular expressionisPerLine - true if the regular expression should be applied to
each line, or false if it should be applied once to the entire
text| Method Detail |
public java.lang.String[] extractText(java.lang.String text)
This implementation extracts one fragment of text for each parenthetical regular expression group. If the expression has no groups, this method will return an empty array.
extractText in interface ITextExtractortext - input text document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||