I have a URL rewrite in IIS that's triggering on 3 URL's but I only want it to trigger on two URL's
http://www.example.com/resources/myresource
http://www.example.com/resources/myresource/
http://www.example.com/resources/myresourceKB
The first two urls' I want it trigger on but not the third one.
I was using resoucres/myresource
as my regex pattern, but then I noticed the third URL got included in it.
How can I make the regex capture the first 2 url's but not the third?
使用否定的前瞻(?!)
:
http://www.example.com/resources/myresource(?!KB)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.