• Post Reply Bookmark Topic Watch Topic
  • New Topic

regex doubt  RSS feed

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to garantee that a string has only the digit:
1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
I'm doing the following (and i guess it works properly):

But i'm sure there's a better way
i tried
but this one doesnt work...
Can someone help me?
thanks in advance
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Intermediate forum...
[ September 22, 2004: Message edited by: Dirk Schreckmann ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!