Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想检查 Request.RawURL 字符串是否与某个结构匹配。
要检查的结构是:
/health/<integer>/<string>
例如
/health/301/personal-trainers-at-work
如果原始 url 与此结构匹配,我希望表达式评估为真。
使用这个正则表达式/health/\d+/[\w-]+
/health/\d+/[\w-]+
/health/ const srting \d+ 1 or more integers / const srting [\w-]+ 1 or more alphanumeric characters _ or -