View Single Post
  #12   Report Post  
Posted to uk.d-i-y
Adrian Caspersz Adrian Caspersz is offline
external usenet poster
 
Posts: 1,375
Default regex guru required

On 09/11/17 21:06, Andy Burns wrote:
Bob Eager wrote:

I once had to do a similar task, and regex really isn't the right answer.


If I had a choice something that could read the html document and access
it through the DOM model, perhaps with XPath, and PHP is almost never my
weapon of choice ...


And for that, I've used CSS selectors with Pup.

https://github.com/EricChiang/pup

Which works a bit like jq on json.

--
Adrian C