Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RegEx for a child objects
#1
Not Solved
I need to write a regular expression for this:

Code:
<SPAN>Employer Service Rep</SPAN>


This is what I am using, is this correct?

Code:
<SPAN>.*</SPAN>

Thanks,
SBsteven
Nevermind, I got it now....

Here is what I do want to filter on:

Code:
<SPAN>Employer Service Rep</SPAN>

Here is what I DO NOT want:

Code:
<SPAN style="CURSOR: hand; COLOR: blue" onclick="appAdminForm.action.value='click_modify';appAdminForm.attrName.value='nwRSCrole';appAdminForm.submit();">Modify </SPAN>

I was just told to use this RegEx:

Code:
<SPAN>.*

SBsteven
Reply
#2
Not Solved
If you use '<SPAN>.*</SPAN>' for string '<SPAN>Employer Service Rep</SPAN> ' this will return True

but for
Code:
<SPAN style="CURSOR: hand; COLOR: blue" onclick="appAdminForm.action.value='click_modify';appAdminForm.attrName.value='nwRSCrole';appAdminForm.submit();">Modify </SPAN> if you use <SPAN>.*,
this will return False
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ReGex not working for Java Items jimrazak 0 2,095 02-23-2012, 06:17 PM
Last Post: jimrazak
  Turn Off RegEx mv8167 4 4,355 09-27-2011, 10:20 PM
Last Post: mv8167
  regex works but how do i return the found string to a variable jove1776 2 3,272 08-24-2011, 06:17 PM
Last Post: jove1776
  QTP 9.2 RegEx issue ashv 2 3,663 02-20-2011, 12:48 PM
Last Post: ashv
  Troubles with Regex in Browser XeNoMoRpH 4 3,156 06-18-2009, 04:31 PM
Last Post: XeNoMoRpH

Forum Jump:


Users browsing this thread: 1 Guest(s)