Answer the question
In order to leave comments, you need to log in
How to write a regular expression that will search for words in the text of a wordpress article?
There is a wordpress article text, that is, it contains tags, you need to enclose some words in the < a > tag,
the problem is that if the keyword is, for example, in < img title="keyword" src="some.page/img/photos /some/some/some/my-keyword-here.jpg"/>
then it will replace what is in it, but I need to somehow avoid this
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question