org.das2.qds.filters.FilterEditorPanelUtil

Utility classes

FilterEditorPanelUtil( )


decimalRegex

decimalRegex( ) → String

return regular expression for decimal regex, without leading or trailing whitespace. From http://www.regular-expressions.info/floatingpoint.html modified to allow "1.e4"

Returns:

regular expression for a decimal, without whitespace. Note it contains (groups)!

[search for examples] [view on GitHub] [view on old javadoc] [view source]


decimalRegexSloppy

decimalRegexSloppy( ) → String

sloppy regex to be used when the number doesn't need to be parsed.

Returns:

regular expression that would match a decimal, without whitespace.

[search for examples] [view on GitHub] [view on old javadoc] [view source]