Code: Select all
myVar := "foo foo, ""bar bar, ""baz baz"
myvar := RegExReplace(myVar, """", "blabla")
MsgBox % myVar
Code: Select all
myVar = "foo foo, ""bar bar, ""baz baz"
myvar := RegExReplace(myVar, """", "blabla")
MsgBox % myVar
See especially the documentation @
Variables and expressions:
Code: Select all
[in an expression](...)To include an [two] actual quote-character inside a literal string, specify two [four] consecutive quotes
yet functions parameters are evaluated as expressions.
Hope this helps.
[EDIT] both examples are intended to illustrate the difference between
Myvar= vs MyVar := which one setting an expression using the
colon-equal operator.