Aaron wrote:I've encountered a snag getting regular expression strings from the Ruby script back to the sipswitch. The strings are not getting passed back literally and regex escape patterns are not making it through. The workaround is to use replace any case where normally \ would be used with \\.
I guess you probably use some program to preprocess the script before it is executed. I once had to use eight backslash \\\\\\\\ to make path names in Windows registry file to work because I used two programs to process the file and the registry file itself require double slash.