Code on the page:
<div class='container'> <p> <b>Address:</b> Some address<br /> <b>Phone:</b> phone1, phone2<br /> <b>E-mail: </b><a href='mailto:somemail' >somemail</a><br /> <b>Site:</b><a href='somesite'>somesite</a> </p> </div>
I need to select the text after </b> and before <br /> using XPATH. In this case, I will need to get "Some address" or "phone1, phone2", etc.
"Some address" should be in $ var1 'phone1, phone2' in $ var2
I tried with .//*[@class="container"]/p/text()[1] , this did not work.
source share