# How to find out the regularly changing value in a single line?

How to find out the regularly changing value in a single line? Tell me How many ways are there?
Ex: India having 100 crore population now.
here 100 is changing regularly. How to write the Script for this?

Showing Answers 1 - 6 of 6 Answers

#### Rakesh Patwa

• May 22nd, 2014

You need to process the string. In this case, you can could no. of text before particular text which you want to extract (in this case, its 100) and then can split the string by SPACE character and finally you will get the value.

There are other ways through we can get the exact value. Above method would be simplest one.

Was this answer useful?  Yes

#### selva

• Jun 6th, 2014

Use getROProperty. it is used to get the run time values

Was this answer useful?  Yes

#### koti

• Jul 17th, 2014

```Codestr="India having 100 crore population now."
for i=1 to len(str)
x=mid(str,i,1)
if Isnumeric(x) then
s=s&x
msgbox s
end if
Next```

Was this answer useful?  Yes

#### koti_rao Profile Answers by koti_rao

• Jul 19th, 2014

```Codeset obj=new RegExp
obj.Global=True
obj.Pattren="d+"
set s=obj.Execute(str)
for x in s
msgbox x
Next```

#### Divya

• Mar 28th, 2016

```Codestr="India having 100 crore population now."
newarr=split(str)
For i = 1 To ubound(newarr) Step 1
If isnumeric(newarr(i-1)) Then
msgbox newarr(i-1)
End If
Next```

Was this answer useful?  Yes

#### Kishan

• May 10th, 2016

Below is the correct program.

```Codestr="India having 148 crore population now."
set obj=new RegExp
obj.Global=True
obj.Pattern="[0-9]"
set s=obj.Execute(str)
for each x in s
y=y&x
Next
msgbox y```

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.  