Skip to content

Regex_search

mtbeek32 edited this page Jan 2, 2023 · 5 revisions

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

description

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

since version

7.011

example

parameter TextOk := dquote('Corop') + ';' + dquote('CoropLabel');  // the following regex_search function searches the TextOk   // parameter by the configured syntax  parameter FindSubString := regex_search(Regex_match/TextOk,'\"[^\"]*+\"',0); result = "Corop"

see also

Clone this wiki locally