(?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 /*/
Still not sure where "negative groups" is coming from - I've not heard that term, nor seen the syntax
[^(abc)]
except as a negative character class (any char except those five) - not in Java/Python/Perl/PCRE or any others I'm aware of. Have you got a reference for it?