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?
Hi,
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:
the debug output (radiusd -X) should show you all the values as things happen - and thus show you the comparison and how ita failing alan
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:
the debug output (radiusd -X) should show you all the values as things happen - and thus show you the comparison and how ita failing
Alan
Turns out that those spaces between the 2 and the domain were actually newline characters. Removing those made the match work.
participants (2)
-
Alan Buxey -
Scott McLane Gardner