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!

regex for even/odd Number

807580Sep 3 2010 — edited Sep 9 2010
nice day,

is there way to easier to write regex expresion for even/odd as Pattern.compile("[02468]")/Pattern.compile("[13579]")

and multiplay of Numbers 3, 6, 9

Edited by: mKorbel on Sep 3, 2010 9:32 AM
add multiPlay
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2010
Added on Sep 3 2010
21 comments
1,010 views