regex except string

Try this: https?:\/\/example[.]it\/(?!hello).*

Working example: http://regexr.com/3dc97

I’m guessing the follow up question would be if you can make domain dynamic but I’m sure you can figure that out.

Leave a Comment