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!

Invalid escape sequence (valid one's are...)

807588Feb 20 2009 — edited Feb 20 2009
I am trying to match first name/last name:

--> atleast 3 alphabetical characters, without spaces

I get "Invalid escape sequence (valid one's are...) " error when I write:

if(!wdContext.currentInputValuesElement().getFirstName().trim().matches("[a-zA-Z]{3, }[^\s]"))

What is wrong above.

Thanks

Seenu.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2009
Added on Feb 20 2009
17 comments
331 views