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. Can you explain? (not only give the right answer)

href = "([^"])" [^>]* > ([^<]*)

Any help is appreciated!

Catarina Nogueira
  • 754
  • 1
  • 8
  • 19
  • 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