Hello, how to set up a REGEX to get 2 groups of all the href link
<a href="/page/page/categoria/page?page=2&publica=1" rel="next">2</a>
Where group 1 would be the entire link
/page/page/categoria/page?page=2&publica=1
And the second group would be the page number (page = ? )
2
My REGEX by how much it looks like this:
href=["][^"]+page=(\d+).+["]
// GRUPO 1: href="/page/page/categoria/page?page=2&publica=1" rel="next"
// GRUPO 2: 2