miscellaneous-functions regex_search


  • regex_search(source, searchsyntax , optionalflag)


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 searchsyntax expressed by the syntax argument.


regex_match uses the boost 1.51 regex_match 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



parameter<string> TextOk := dquote('Corop') + ';' + dquote('CoropLabel');
// the following regex_search function searches the TextOk
// parameter by the configured syntax

parameter<bool> FindSubString := regex_search(Regex_match/TextOk,'"[^"]*+"',0); // result = "Corop"

see also