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がこの構造に一致する場合、式をtrueと評価します。
この正規表現を使用する/health/\d+/[\w-]+
/health/\d+/[\w-]+
/health/ const srting \d+ 1 or more integers / const srting [\w-]+ 1 or more alphanumeric characters _ or -