Package org.docx4j.model.fields
Class NumberExtractor
java.lang.Object
org.docx4j.model.fields.NumberExtractor
Extract a number from a string.
The number can have a decimal point.
-
Field Details
-
regex
-
decimalSymbolFallback
-
groupingSeparator
-
pattern
-
decimalSymbol
-
-
Constructor Details
-
NumberExtractor
-
-
Method Details
-
prepare
Convert radix point to ".", and remove thousands separator, in preparation for our regex. -
extractNumber
- Parameters:
string-- Returns:
- Throws:
IllegalStateException- if no match
-
main
- Parameters:
args-
-