A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
Java in General
Reg. Expr. using Pattern - Invalidate a String, if it contains certain characters
Joined: Jul 21, 2003
Mar 14, 2011 14:33:31
I admit that I am not good with regular expression. If any of you is good with regular expression, could you please suggest a
that will help me?
This is the problem statement:
If an input
contains any of the following 16 characters (e.g. !, @, =, etc.) that that input String is invalid.
Joined: Oct 27, 2005
Mar 14, 2011 16:14:15
Check out character classes on the
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
Have you tried LearnNowOnline?
subject: Reg. Expr. using Pattern - Invalidate a String, if it contains certain characters
pattern Match without using Pattren or RegulaExpression
How to find if there is a number in a string using regular expressions.
How to check whether the string contains only the specified characters?
Can you simulate String.replace(...) & String.contains(...)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015