(?s)\s|/\*.*?\*/
I've tested with ColdFusion 8 and Railo 3.3.
sCSSContent= sCCSContent.ReplaceAll( "(?s)\s|/\*.*?\*/" , "" );
/* Test 1 */
/* Test * / * 2 */
/* Test
. test
. test
test 3
*/
/* Test * / * 4 */ width: 0; /* Test 5 *//**/
/* Test 6 /*/
Java does negative characters, but it doesn't do negative groups.
[^(abc)]
should be anything except the string "abc."Thanks again, the multiline test was failing without
(?s)
. I had it buried where it wasn't easily seen. I changed my tests to be more visual and added them to the gist.