Posts: 35
Threads: 19
Joined: Feb 2008
Reputation:
0
04-11-2008, 12:57 PM
Hi,
I want to know
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
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
04-11-2008, 03:31 PM
regular expressions cant be used in comparison statements...
you can use RegEx object to accomplish this task...Refer QTP help to get more info about this object.
Posts: 4
Threads: 1
Joined: Jan 2008
Reputation:
0
07-15-2008, 10:19 AM
(This post was last modified: 07-15-2008, 10:47 AM by aditya.)
Hi,
"02 Jul 2008 18:38 -sasdgadfgasdfgagdgaghd"
I need to replace "02 Jul 2008 18:38 "with regular exp. how i can do that plz help me i tried lot of ways but not getting.
We are using descriptive programming.