Class: Regex

olympe.dc.predicates. Regex

Predicate that tests if the source string is a match for the specified regular expression. WARNING: on the server, the regexp must match the complete string (as if we apply the regexp /^ any $/)


new Regex(source, regExp [, caseSensitive])

Parameters:
Name Type Argument Default Description
source olympe.dc.ValueDef

The string to match

regExp olympe.df.Proxy.<string> | string

The regular expression

caseSensitive olympe.df.POBoolean | boolean <optional>
true

true to make the match case sensitive

Implements:

Methods


getInternalPaths()


getName()


getRegExp()

Gets the RegExp string

Returns:

The regular expression

Type
olympe.df.Proxy.<string> | string

getSource()

Gets "source" value def

Returns:

The string

Type
olympe.dc.ValueDef

isCaseSensitive()

Returns true if the predicate is case sensitive

Returns:

true if the match is case sensitive

Type
olympe.df.POBoolean | boolean

serialize()


test()


toString()