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

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -