Answer the question
In order to leave comments, you need to log in
How to pull out only url replace'om?
Replace
again O_o
There is, for example, a link:
<a href="http://google.com" style="text-decoration: none; font-weight: bold; font-family: Georgia, serif, sans-serif; font-size: 20px">Hello world</a>
replace(/<a.*?(href\s*=\s*["|'][^]*["|']).*?>([^]*)<\/a>/gim, '$2 и $1');
Answer the question
In order to leave comments, you need to log in
Long to explain, here is the regular season. And the groups in it.
and pull out $1 and $3.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question