6 Mar
2012
6 Mar
'12
3:47 p.m.
I'm having trouble getting unlang to match a string inside a larger string. I have a script that outputs a string of domain groups, like this: DOMN\Domain Users 2 DOMN\Wireless Users 2 DOMN\STUsers 2 DOMN\WOCL Wireless DOMN\WOCL Staff I have a unlang conditional written like this which I think should match, but is not matching: If (`/bin/sh /path/to/script` =~ /WOCL\sWireless/) { Do things } Else { Do other things } Can anyone tell me why my regex is not matching?