Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please read this: Regular Expressions
#1
#2
#3
What do you mean by "not working properly"?

If you meant "its not opening", I have checked on firefox as well as IE and I am able to open the given link.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
#4
Hi Ankur,
I enterd as
Regular Expression:[A-Za-z]*
&Test String:abc123
then When I click on the test button its showing as
Test Results: True
It should be False.Bcoz the string contain numaric values.


--------------------------------------------------------------------------------
#5
It is giving correct result.

Regular Expression:[A-Za-z]* means match capital A-Z or small a-z 0 or more times so even if you have 123 instead of abc it will pass.

Change it to [A-Za-z]+ (match capital A-Z or small a-z 1 or more times) and you will see that a123 would be "True" but 123 would yield "false"
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
#6
Hi Ankur,

How to use regular expression in replace function
I want to discard numbers in text
Below is the issue
Text1 = "hello1234"
replace(Text1,[0-9],"") 'This line throws syntax error
#7
@kamalteja: please post a new question on a separate thread.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course


Possibly Related Threads…
Thread Author Replies Views Last Post
At Regular Expressions for e-mail address ganesh.dengale 6 20,703 08-23-2022, 02:51 PM
Last Post: ahmad3029
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,816 04-09-2015, 01:56 AM
Last Post: sarahq49
  How to disable regular expressions in a text? ttralor 6 8,033 07-05-2013, 02:44 PM
Last Post: Staff
  Need help on using regular expressions on Java Window's title qa_tester 3 5,882 02-13-2012, 10:56 PM
Last Post: madsenfr
  java window titles & regular expressions jotdog2 1 4,791 02-13-2012, 10:55 PM
Last Post: madsenfr

Forum Jump:


Users browsing this thread: 1 Guest(s)