div class="ydpbfddd73dsignature" >......
How do I use xpath to get whatever text comes after this tag?
I tried doing this
nokogiri_html=Nokogiri::HTML html
nokogiri_html.xpath('//div[@class="/.*signature/"]')
But it doesn't work.
div class="ydpbfddd73dsignature" >......
How do I use xpath to get whatever text comes after this tag?
I tried doing this
nokogiri_html=Nokogiri::HTML html
nokogiri_html.xpath('//div[@class="/.*signature/"]')
But it doesn't work.
You can apply below XPath:
//div[substring(@class, string-length(@class) - 8)="signature"]
which means return div node which has "signature"
as last 9 characters of class name