Give one example where you have used Regular Expression?

Showing Answers 1 - 4 of 4 Answers

Nitin

  • Jun 12th, 2012
 

Regular expression are used when object changes dynamically.For example: We have a input button name "Hello" on website then it changes to "Hello11" and after some time changes to "Hello123" so to handle such type of situation we will use regular expression * there as "Hello*". There are many more special characters which generally used as a regular expression.

  Was this answer useful?  Yes

hari babu

  • Jul 9th, 2012
 

Code
  1. pattern=""[a-zd*]"

  Was this answer useful?  Yes

kranthi

  • Aug 15th, 2012
 

as per nitin answer i agree but we can use regular expression in test cases also how it is like shown below:
if we have lengthy statements in test cases we can use this
for ex:in testdata alphanumerics in lowercase is valid for login module we can write;
username is:test_data23
[a-z0-9_]+
like this we can write

  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