A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Need Regular Expression
Joined: Sep 04, 2008
Sep 17, 2009 09:21:20
In my code i have a
Now in this string i need to print a warning message, if contains
any character other than (A-Z,a-z,0-9,_)
I tried to do with contains([A-Za-z0-9_])and
But could not get through.
Where am i doing mistake. Can you please point it out..
Joined: Oct 27, 2005
Sep 17, 2009 09:29:12
Check the API of
. It clearly specifies how to create an "Any character except" character class.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Need Regular Expression
Problem using Pattern n Matcher (REGEX)
Problem using Pattern and Matcher (REGEX)
how to string search ?
Check if a String has alphabets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015