SS 3.0 Mapping - regular expressions - not matching

Hi:

Seem to be having some problem here getting the session variable Edit Token | Mapping feature to work with regular expressions.

Got type = "contains" to work OK with literal string, but not type = "regular expression" Doesn't match .* , which is about as general as you can get.

However, now have gotten ^.*$ to match.

It appears the main problem at the moment is that there is no match when the HTML has been removed, since the Advanced | Strip HTML interprets some HTML code and inserts cr-lf pairs in the output stream. The regex engine does not appear to be in multiline mode, so can't match over the cr-lf pairs and the match fails.

Specifically, the pattern ^[.\n\r]*$ fails to match if Strip HTML is checked (and it fails also on not checked, perhaps because there are no \n or \r in the output stream).

^(.*\r\n.*)*$ and ^(.*\n\r.*)*$ didn't work either on the stripped HTML ouput stream.

Reexamined the output stream with a hex viewer again, and see that the stream from SS has a string of linefeeds (\n or 0x0A chars). Changed the pattern to ^(.*\n*.*)*$ and now got a match.

The cr-lf pairs I saw earlier were apparently artifacts of editing a test output in Notepad, which evidently replaced lf (0x0A, or \n) characters with cr-lf pairs (0x0D 0x0A). The original output stream did not have the pairs.

Hope this is useful to others.

-- Roy Zider