Answered Questions

  • 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?

    Kishan

    • May 10th, 2016

    Below is the correct program.

    Code
    1. str="India having 148 crore population now."    
    2. set obj=new RegExp
    3. obj.Global=True
    4. obj.Pattern="[0-9]"
    5. set s=obj.Execute(str)
    6. for each x in s
    7. y=y&x
    8. Next
    9. msgbox y

    Divya

    • Mar 28th, 2016

    Code
    1. str="India having 100 crore population now."
    2. newarr=split(str)
    3. For i = 1 To ubound(newarr) Step 1
    4.         If isnumeric(newarr(i-1)) Then
    5.                 msgbox newarr(i-1)
    6.         End If
    7. Next