Can someone help me out with the matches function?
I need to use if to store part of the text of a <P> element
html is:
<div id="main"><h1 id="confirmation:j_id_jsp_1039943378_238"/>
<h1 id="confirmation:j_id_jsp_1039943378_240"/>
<h1 id="confirmation:j_id_jsp_1039943378_242"/>
<p>Your order number is 459067 </p>
<p/>
I need just the number of of the "Your order number . . "
so I have this so far
<storeXPath description="Extract order number paragraph"
xpath="//[EMAIL PROTECTED]'main']/p[6]"
property="ordernumber"/>
that gives me the whole shibang
this would be my regex='\d{6}'
I tried this and it doesn't work
<storeXPath description="Extract order number paragraph"
xpath="//div/p[6]fn.matches(.'\d{6}')"
property="ordernumber"/>
Any ideas?
what is the correct syntax of the xpath?