Does anyone know the correct syntax for a regex replace in an Architect Data Action expression to convert +1XXXXXXXXXX to (XXX) XXX-XXXX? I have attempted to use standard PCRE patterns but the engine consistently returns a null value for the output variable.
I am currently passing the raw string into the expression builder and applying the replacement logic, yet the result remains unchanged despite the input matching the expected pattern structure. The environment is strict regarding special character escaping.
Please provide the exact expression string that handles the parenthesis and hyphen insertion correctly without triggering validation errors in the Data Action configuration.