10-12-2010, 01:00 PM
Dear All,
I am getting out values 4, 78, 44 from this function but I want to store all output values(4, 78, 44) in different variables.Can you please help me out to solve this.
-----------------------------------------------------
------------------------------------------------------
Thanks,
Jyo
I am getting out values 4, 78, 44 from this function but I want to store all output values(4, 78, 44) in different variables.Can you please help me out to solve this.
-----------------------------------------------------
Code:
Dim Matches,Match,re
Set re=new RegExp 'creates a new regexp object
s="he4llo78ty44"
re.Global = True 'This tells the regexp to keep looking for more matches after the first one.
re.pattern="\d+"
set Matches=re.execute(s)
For each Match in Matches
msgbox "value is"& Match.value
Next
Thanks,
Jyo