0

I want just to get the url of:

<a href="http://www.wikipedia.org">The linked text</a>

and I did a regex but I don't understand why it does not work. I'd be interested to understand how to correct this.

href = "([^"])" [^>]* > ([^<]*)
halfer
  • 19,824
  • 17
  • 99
  • 186
Catarina Nogueira
  • 1,024
  • 2
  • 12
  • 28
  • See https://stackoverflow.com/a/4001362/3832970 – Wiktor Stribiżew Jan 29 '20 at 21:40
  • On this question that you put the link is just the answer, I was more interested on an explanation.... If you please can explain then :) – Catarina Nogueira Jan 29 '20 at 21:42
  • 1
    See [this thread](https://stackoverflow.com/questions/22937618/reference-what-does-this-regex-mean), and the [explanation of your regex](https://regex101.com/r/jZMWeP/1). However, you wanted [this](https://regex101.com/r/jZMWeP/2) – Wiktor Stribiżew Jan 29 '20 at 21:44

0 Answers0