A
Andreas Hochsteger
Hi,
is it possible to construct a single regular expression which matches
everything except strings which start with a certain string?
I need it for matching Paths and want to exclude certain directories.
Example:
Match all paths not starting with /forms/ or /users/:
/index.php and /contact/index.php should match, but not
/forms/contact.php as well es /users/login.php.
Any ideas?
Please have in mind, that I have to use the regular expression in a
configuration file so it's not possible to do the negation from within
a programming language.
Thanks,
Andreas.
is it possible to construct a single regular expression which matches
everything except strings which start with a certain string?
I need it for matching Paths and want to exclude certain directories.
Example:
Match all paths not starting with /forms/ or /users/:
/index.php and /contact/index.php should match, but not
/forms/contact.php as well es /users/login.php.
Any ideas?
Please have in mind, that I have to use the regular expression in a
configuration file so it's not possible to do the negation from within
a programming language.
Thanks,
Andreas.