A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
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