RegSubEx()
Syntax
Result = RegSubEx(*Reg, String$, Source$, @*Dest)
Description
executes the compiled regular expression *Reg on String$. It then uses the result of the match to build a string from the specification in Source$, allocates a new string, and puts the string address in *Dest. Each instance of `&' in Source$ is replaced by the whole string that matched the compiled regular expression. Each instance of `\n', where n is a digit, is replaced by the substring indicated by each subexpression. For instance, `\1' will be replaced by the part of String$ that matched the first subexpression of *Reg, and so on. To get a literal `&' or `\n' into *Dest, prefix it with `\'; to get a literal `\' preceding `&' or `\n', prefix it with another `\'. Result is 1 for match and 0 when there was no match.
Supported OS
Linux