I am using the following regex:
https://(dev-|stag-|)(assets|images).server.io/v[\d]/file/(.*?)/(?!(download$))
- Url 1: https://assets.server.io/v3/file/blt123e25b85f95497/download.jpg
- Url 2: https://images.server.io/v3/file/blt123e25b85f95497/download
- Url 3: https://images.server.io/v3/file/blt123e25b85f95497/random.jpg
The intention is to match Url 1 & 3 completely, but not Url 2, but it doesn't seem to work.
By checking the following answers: Javascript regex negative look-behind, Regex: match everything but, I believe a negative lookbehind would work, but am unable to figure out what the regex for that would be.
Any help with it would be greatly appreciated!