regex - How do I create a regular expression to negate a string but include anything else -
I am trying to create a regex for Apache, which will ignore some strings, but will use anything Ive Have tried many different ways but I just can not seem to get it right.
For example
I want to ignore it
ignore.mysite.com
< / P>
text ">
If you want a regex which is whatever Mysite.com < / Code>, where
is whatever
is a possible hostname, but you do not want to match regex Ignore.mysite.com
, try again :
^ (ignore ?!) [a-z0-9 -] + \. Mysite \ .com
The trick is to use.
Comments
Post a Comment