I am trying to use variable inside the below regex but I am unable to get the correct output.
(?<=="Page 2" class="fl" href=")(.*?)(?=\"><span class=\"csb)
-- I tried below but not sure I missed something.
(("?<== \"Page "+ pages++ + "\" class=\"fl\" href=\"")"(.*?)"(?=\"><span class=\"csb"));
--
How I can achieve it?
Edit:
aria-label="Page 2" class="fl" href="/search?q=.net+regex+tester&ei=p3Q7XNzkBt6RwgPrga-YBQ&start=10&sa=N&ved=0ahUKEwic1OvFo-vfAhXeiHAKHevAC1MQ8tMDCHw"><span class="csb ch"
-- Added the source.