Hi!!
I am new to regular expressions, can someone help me
please... I need
to match all the files with a .jsp extension except for the
file
login.jsp. Is this possible?
Thanks a lot!!
match all .jsp files except login.jsp
2006-01-27 14:45:53
Perhaps showing what code you have so far, and where your
problem
specifically is with that code will land you more responses.
match all .jsp files except login.jsp
2006-01-27 21:10:49
if u r talking about validating strings (file names)
one-by-one in a
text-box for example so the input is always embraced by the
sart (^)
and end ($) of the line then u can use (.NET flavor)
^(?!login.jsp$)w+.jsp$
it'll fail to match 'login.jsp' but will match other file
names ending
with '.jsp' and having ONLY alphanumeric (i.e [a-zA-Z0-9_]
characters.
match all .jsp files except login.jsp
2006-01-27 21:16:38
KBuser is right, u need to het accustomed to sharing as much
info about
your task/problem as possible. It speeds things up and gets
u more
right-to-the-point responses. And people's time doesn't get
wasted,
which is not the last thing...
match all .jsp files except login.jsp
2006-01-30 08:06:32
Hi all!
Sorry... I didn't thought that you will need more info to
help me.
What I am trying to do is write a web filter in java that
will
intercept only some requests (those who match my regex). I
think I
have solved the problem not by creating the original regex
that I
wanted but by changing the way of working. I am going to
create a
regex that match only the exceptions. This way my regex is
a lot more
easy (only login.jsp will match). Thank you all for all
your help and
time...