suppose im having a string wipro123xyz i need to get the
value 123 only from the string today 123 will be in the
middle from tommorow it will be changing to front or back
how to get the no if it changes continously?
Answers were Sorted based on User's Feedback
Answer / sailaja
txt="123wiproxyz"
mypos=instr (1,txt,"123")
msgbox mypos
k=mid ( txt,mypos,3)
msgbox k
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / aiswaryan
Function RegExpTest(patrn, strng)
Dim regEx, Match, Matches ' Create variable.
Set regEx = New RegExp ' Create a regular expression.
regEx.Pattern = patrn ' Set pattern.
regEx.Global = True ' Set global applicability.
Set Matches = regEx.Execute(strng) ' Execute search.
For Each Match in Matches ' Iterate Matches collection.
RetStr = RetStr & Match.Value' & vbCRLF
Next
RegExpTest = RetStr
End Function
a=(RegExpTest("[0-9]", "1234_Today"))
msgbox(a)
"a" contains the numbers in the given string from 1st to
last position.
If anybody know smarter way to achieve above task, please
post the answer.
| Is This Answer Correct ? | 2 Yes | 0 No |
The Senario is Steps to do 1.Entered userid in textbox 2.saved with details 3.i want to open user which i have created its in hurry.....
How to map the test cases to requirements in QC?
In QTP what is the difference between Step-in, Step-out, Step-over ?
Plz write the code, function will take the parameter as month number, i.e., numerical value, but it returns the last day of the month in string (weekday). example: input: function parameter: 3(march) output: thursday
How many scripts did you have?
how many test scripts we will write in qtp? very urgent. please??? Thanks in advance..
Explain about the test fusion report of quicktest professional?
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
How does QTP identifies the object in the application Mainly objectives are three type's OF PROPERTIES namely
describe some problem that u had with automation testing tool?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
how u track bugs using Test director in manual testing.