Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Special Character Validation Using Regular Expression in ADF

Sahdeep RajputDec 7 2014 — edited Dec 8 2014

Hi Guys,

I want to put the special character validation like (,.'(,) &,- ) using regular expression .

I putted validation like [a-zA-Z0-9'( .),\-/&] but it is not working properly.

Special Character Should be like :

Comma ,

Hyfan -

Dot .

Open and closing braces ( and ).

Ampercent &

Apastrophy '

Space " "

Please help if any one have idea.

And I also tried to put below expression like ...

[a-zA-Z]+(\\s*[0-9]*[a-zA-Z]*-*&*\\(*\\)*,*'*.*)*[a-zA-Z0-9]+ but it takes validation if we put special characters between the charater string like "ab',.&( )bc".

its not working if i put special character at the starting and end of the String in ADF

This post has been answered by Sahdeep Rajput on Dec 8 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2015
Added on Dec 7 2014
7 comments
4,039 views