Please enable JavaScript to view this site.

 

str = StrReplaceRegex(sFull,sFind,sReplace,bAll,bIgnoreCase)

 

This macro function takes a string sFull and replaces occurrences of the string sFind by sReplace using regular expressions.

 

bAll: when this parameter is true, all occurrences of sOld will be replaced, otherwise only the first occurrence will be replaced.

bIgnoreCase: when this parameter is true the search for occurrences of sOld is case insensitive.

 

See also: StrReplace, StrFindRegex, PadString.

 


Topic 188580, last updated on 14-Jun-2025