Answer the question
In order to leave comments, you need to log in
How to capture only up to the first quote?
Expression:
<h.*>.*<a.*href='(.*)'>.*<\/a>.*<\/h.*>
Text:
<h1 class='blablabla'><a class='Title' href='https://www.url.com' rel='rel'>blablabla</a></h1>
https://www.url.com' rel='rel
https://www.url.com
Answer the question
In order to leave comments, you need to log in
There is a concept of "greed" in regular expressions. Read about it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question