Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

xpath starts-with and ends-with

$x('//span[@class="text" and starts-with(.,"A")]/text()')
#Delivers texts of certain html element(span here) which start with "A"
$x('//span[@class="text" and ends-with(.,"A")]/text()')
#Delivers texts of certain html element(span here) which ends with "A" ;)
 
PREVIOUS NEXT
Tagged: #xpath
ADD COMMENT
Topic
Name
7+5 =