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!

Bug with regex? [solved]

2649099Apr 7 2014

Hello,

I have made a regex (it's a little version not entire version of my regex but it doesn't work too) ^[0-9a-z]*(?:@[0-9a-z]*)?$ (Regexper) it can check when a user typing if the email was correctly typed.

on JS it's work proper (only test with it) but in java you can put an infinity of @ without any problem

tested on java:

java version "1.7.0_51"

Java(TM) SE Runtime Environment (build 1.7.0_51-b13)

Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

sorry for my poor english

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 5 2014
Added on Apr 7 2014
2 comments
1,309 views