How do I use the Not operator ^ with the capture groups in regex.
Example: I have two URLs coming in http://api.example.com and http://example.com
How would I make a capture group on all URLs that do not contain api
.
How I thought this would look is var notAPI = /(^api)/;