Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

regular expression  RSS feed

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have String say Str it usually has a 10 digit number..how to test it contains numbers between 0-9 only
 
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read the documentation for Pattern and gone through this tutorial? What have you tried and what was the result?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!