A regular expression to exclude a word/string

2024-09-23 | code | regex

问题描述

I have a regular expression as follows:This matches strings such as /hello or /hello123.However, I would like it to exclude a couple of string values such as /ignoreme and /ignoreme2.I've tried a few variants but can't seem to get any to work!My latest feeble attempt was

提示词

None
Loading...