Nothing amazing but I use it all the time, I'm surprised something similar hasn't been added to the standard StringReplace. I've never been any good at regular expressions, I'm sure if I was the whole example below could be done in one line But for the simple minded like me here you go Enjoy$BIOS = _StringMultiReplace(CleanWMIC("bios", "biosversion"), "(|)|{|}", "")
Func _StringMultiReplace($zString, $zSearchString, $zReplaceString, $zDelimeter = "|")
If $zString = "" OR $zSearchString = "" OR $zDelimeter = "" Then
SetError(1)
Return $zString
EndIf
$zArray = StringSplit($zSearchString, $zDelimeter)
For $i = 1 to $zArray[0]
$zString = StringReplace($zString, $zArray[$i], $zReplaceString)
Next
Return $zString
EndFunc