Hi. How do we make regular expression of a 3 digit number?

Questions by dsharma   answers by dsharma

Showing Answers 1 - 2 of 2 Answers

kvvsatish

  • Jul 19th, 2006
 

If the task is to find a three digit number in given input the following code works

Set reg=new regexp
reg.pattern="[1-9][0-9][0-9]"    'This matches with only 3-digit numbers
reg.global=true
Set m=reg.execute("This is 100,206,10,1,444")
For each n in m
 msgbox n.value
Next

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions