Skip to Main Content

Java Programming

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!

Regular Expression

807588Mar 10 2009 — edited Mar 10 2009
HI,

I am new to java programming. I need some regular expressions for my following scenarios:

1. Text should begin with only alphabet and the remaining letters can be any of the one given in brackets ( "-", 0-9, "_" ).
2. Third character of the given text must not be a "-", and all the conditions given in 1 are applicable to this also.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2009
Added on Mar 10 2009
23 comments
271 views