Hi guys I am looking for a regular expression which will not match any given string that is exactly equal to a few keywords I will determine manually.
The purpose is to edit my urlrewrite.xml which can accept regexps in following format
<rule>
<from>^/location/([A-Z]+)/name/([A-Z]+)</from>
<to>/login?name=$2&location=$1</to>
</rule>
For example I want to redirect everything after / which is not 'login' and 'signup' to another page. I am trying following ones but none satisfies my request.
^/(?!(login|signup).*
^/(?!(login|signup)[A-Za-z0-9]+
Because I want it to match only if input is exactly 'login' or 'signup' however, it declines 'loginblabla', too.
Any solutions are highly appreciated. :)