if there is any string in a given format like as "company
name employeecode date" then we have to fetch employeecode
form string
for ex-string is "capgemini12345june2013" then we have to
fetch 12345 by using vb script so guys how can we do that
please reply it.
Answer Posted / sriraja
str="capgemini12345june2016"
strsplit=split(str,"june")
convstr=cstr(strsplit(0))
for i=1 to len(convstr)
strmid=mid(convstr,i,1)
if isnumeric(strmid)=true Then
temp=temp&strmid
End if
Next
Print temp
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
How can you create a file object to work with the files in the vbscript language?
Explain about scrrun.dll in vbscript?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
Can automation testing find ssame no. of bugs what we can find by manual testing?
Mention how to access array data?
Explain How do you create a recordset object in vbscript?
What is the difference between function and procedure?
What is the purpose of regexp object in vbscript?
What is purpose of scripting.filesystemobject class in vbscript?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
Can u describe what kind of testing are for OTC derivates by banks.
Description.Create
How to create a function in vbscript?