File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Need Regular Expression
Check if a String has alphabets
how to string search ?
Problem using Pattern and Matcher (REGEX)
Problem using Pattern n Matcher (REGEX)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014