How would you find a substring in xpath
Hey I would like to find the element that contains some given text, in my case it's the text 2011-015196

    <a id="ctl00_content_list_gvOtherSchemas_ctl02_lbViewSchema" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$content$list$gvOtherSchemas$ctl02$lbViewSchema&quot;, &quot;&quot;, false, &quot;&quot;, &quot;https://test/page.aspx?_InfoPath_Sentinel=1&amp;case=2011-015196&amp;name=MyCase&amp;version=2&amp;p=PPC1&amp;cc=ANSOEG&amp;py=2011&amp;rn=CR274&amp;c=0&amp;st=DRAFT&amp;oo=1&amp;sc=SC001&amp;hln=&amp;tl=31-12-2011 23:59:59&amp;sa=&amp;sai=&amp;san=&quot;, false, true))">MyCase</a>

As you can see it's contained in a postback AJAX call, but how would I locate the text in that postback with Xpath?

How would you find a substring in xpath
===

Hey I would like to find the element that contains some given text, in my case it's the text 2011-015196

    <a id="ctl00_content_list_gvOtherSchemas_ctl02_lbViewSchema" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$content$list$gvOtherSchemas$ctl02$lbViewSchema&quot;, &quot;&quot;, false, &quot;&quot;, &quot;https://test/page.aspx?_InfoPath_Sentinel=1&amp;case=2011-015196&amp;name=MyCase&amp;version=2&amp;p=PPC1&amp;cc=ANSOEG&amp;py=2011&amp;rn=CR274&amp;c=0&amp;st=DRAFT&amp;oo=1&amp;sc=SC001&amp;hln=&amp;tl=31-12-2011 23:59:59&amp;sa=&amp;sai=&amp;san=&quot;, false, true))">MyCase</a>

As you can see it's contained in a postback AJAX call, but how would I locate the text in that postback with Xpath?
