Conditional regex for subdomain
Posted: Sat Aug 02, 2014 1:44 am
I am simply trying to detect all but two subdomains for a specific domain in layer 7 (for DNS forwarding). This should return true for all subdomains of example.com except for sub1.example.com and sub2.example.com.
I've tried for hours different combinations using negative lookaheads and lookbehinds, but this does not seem to be supported for some reason. I just get the error "bad regex: ?+* follows nothing". Can anyone suggest a regex that will negate two subdomains? Thank you!
I've tried for hours different combinations using negative lookaheads and lookbehinds, but this does not seem to be supported for some reason. I just get the error "bad regex: ?+* follows nothing". Can anyone suggest a regex that will negate two subdomains? Thank you!