Hi Utkarsh, rexReplace is a general pattern matching/replacement function - it takes a string as input and returns the updated string. It does not update any variable or expression. schReplaceProperty is explicitly for updating a named property on an object - it's not a matter of updating a variable, but it's designed specifically to modify a parameter on an object. So they do completely different things... Anyway, glad the updated code is working. Regards, Andrew.
↧