Give one example where you have used Regular Expression?

While validating 'Date format' .

Showing Answers 1 - 4 of 4 Answers

Wasim

  • Nov 9th, 2005
 

for the date format "dd/mm/yyyy" the equivalent regular expression would be

Set regExp_Term = New RegExp
regExp_Term.pattern = "11/11/1981"
validation=regExp_Term.test("date to be validated")

if validation="True" Then

-----------------

End If

  Was this answer useful?  Yes

Wasim

  • Nov 14th, 2005
 

Hi ,

We can use Regular Expression where ever required, like in my Web Testing, my browser name changes oftnely, so I used Regular expression in Name property like...

Set Browser= (Title:=Browser.*)

  Was this answer useful?  Yes

raghavendar

  • Dec 6th, 2005
 

hello Every one,

         generaly regular expressions r used when the data is dynamically changing .for example

  take a flights application in the QTP samples.

  we can use regular expression for the Date field ,FaxOrder no,etc

hope u understood.

  Was this answer useful?  Yes

jayashilpa

  • Jul 11th, 2007
 

In the sample "Flight" Appln, the fax order window has a title "Fax Order No: <number>". To identify this window we need to use Regular Expression

  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.

 

Related Answered Questions

 

Related Open Questions