Answer the question
In order to leave comments, you need to log in
Condition in regular expression?
There is a text. In this text, you need to find all the words similar to links and convert them into real html links, but there is one condition in the text, there may be tags in which there is src="link", so these links inside the tag do not need to be touched. Actually the question is how to make a rule that would not change links starting with double quotes. Here is a template that we cannot change in any way to make this condition work:
@(([0-9a-za-i\.-]{2,})\.(ru|com|net)(/[^\s]* )?)@iu
Answer the question
In order to leave comments, you need to log in
Hello.
Do you need to take into account links like http:// and https://?
And not only quotation marks can be used, but also apostrophes.
Do you have text in one line?
You can try like this
Example
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question