Regex_search
Miscellaneous functions regex_search
syntax
- regex_search(source, searchsyntax , optionalflag)
definition
regex_search(source, searchsyntax , optionalflag) results in a string Data item with a substring of the source Argument that meets the searchsyntax argument.
A third optional argument optionalflag can be configured to control how the source string is matched against the syntax expressed by the searchsyntax argument.
description
regex_search uses the boost 1.51 regex_search function. Click here for valid regex syntax rules and semantics.
The third, optionalflag argument is optional. More information on this argument can be found here.
In the GeoDMS this argument is passed as a uint32 Parameter, see the enumeration of Regex flags.
applies to
- data items source and searchsyntax with string Value type
- parameter optionalflag with uint32 value type
since version
7.011
example
parameter<string> TextOk := dquote('Corop') + ';' + dquote('CoropLabel');
// the following regex_search function searches the TextOk
// parameter by the configured syntax
parameter<string> FindSubString := regex_search(TextOk,'"[^"]*+"',0); // result = "Corop"