$string = "I love apple" Global $a_rep[4][2] = [[3], ["apple", "bananas"], ["I", "We"], ["love", "hate"]] For $i = 1 To $a_rep[0][0] $string = StringRegExpReplace($string, "\Q" & $a_rep[$i][0] & "\E", $a_rep[$i][1]) Next ConsoleWrite($string & @CRLF)