Information
This documentation supports the 21.05 (12.2) version of BMC Discovery.To view an earlier version of the product, select the version from the Product version menu.

regex.replace


regex.replace(string, pattern, replacement, count:=0)

Return a string with all non-overlapping matches of pattern replaced by replacement. If count is non-zero, then count number of replacements are made, unless fewer replacements are required in the string.

The regex.replace function has the same semantics as Python re.sub. See https://docs.python.org/3/library/re.html#re.sub although note that the parameter order is different.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Discovery 21.05