Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression for sentence
#1
Solved: 11 Years, 3 Months, 3 Weeks ago Question 
Hi,
Can anyone help me to write the regular expression for

Code:
<html> Container <font color = red><B>20DCTNB1</B> </font> does not exist in the inventory. Considered as a Dummy Container  </html>

==> 20DCTNB1 changes very often
I tried
Code:
<html> Container <font color = red><B>\w[A-Za-z0-9]{8}</B> </font> does not exist in the inventory. Considered as a Dummy Container  </html>

Code:
<html> Container <font color = red><B>".*TN*\."</B> </font> does not exist in the inventory. Considered as a Dummy Container  </html>


but not working.
Anyone help me.
Regds,
samy G
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Try this out

Code:
vText = "20DCTNB1"

Set oRegExp = New RegExp
oRegExp.IgnoreCase = True
oRegExp.Global=False
oRegExp.Pattern="^\w{4}TN\w{2}"

Msgbox oRegExp.Test(vText)
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Dear Frds,
Code:
Set dc= description.Create()
dc("Label").Value= ".*does not exist in the inventory.*"

The above dp working. But i have query how can i use in Check point. Plz help me...

Regds,
Samy G
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
hey Sammy
Please open a new thread for your query.



Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,484 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,351 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,817 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,564 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,114 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)