# Thread: Help req-for regular expresion

1. ## Help req-for regular expresion

Dear all,
Can anybody please tell me the regular expression for PORTFOLIO (17-Dec-2007 09:02:47).I m using this PORTFOLIO \([0-9][0-9]-.*-[0-9][0-9][0-9]. [0-9]:[0-9]:[0-9]\)

Please help me ,it's an [stupid is as stupid does].I m using descriptive programming for QTP in vbscript.the line for which i need this is:-
VbWindow("vbname:=MainForm").VbWindow("vbname:=Ris kExplorerForm").VbTreeView("vbname:=TreeView1","na tiveclass:=TreeViewWndClass").GetItemProperty("POR TFOLIO \([0-9][0-9]-.*-[0-9][0-9][0-9]. [0-9]:[0-9]:[0-9]\);By Trading Book;Accrual","text")

Thanks
Sonal

2. ## Re: Help req-for regular expresion

Can you try this:

\([0-9][0-9]-[a,z]-[0-9][0-9][0-9][0-9]. [0-9]:[0-9]:[0-9]\)

3. ## Re: Help req-for regular expresion

I think vivekyadav22 is close, but I would modify slightly:

\([0-9][0-9]-[A-Z][a-z][a-z]-[0-9][0-9][0-9][0-9]\s[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\)

so that it will catch the three characters in the month, and the space between the date and the time, and the double digits in the time.

And I'm not sure if this variation would work:

\([0-9]{2}-[A-Z][a-z]{2}-[0-9]{4}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.