You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The function returns a STRING copy of s where the first substring matching the given regular expression regexp has been replaced with the given replacement string.

Syntax
replaceFirst(string s, string regexp, string replacement) #Output : String
Examples
Parser expressionDescription
replaceFirst("Hello World", "l", "_")

The function returns a STRING: "He_lo World"

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.

Output

The function returns a STRING