A
A
Alexander Urich2016-03-04 11:58:48
JavaScript
Alexander Urich, 2016-03-04 11:58:48

How to replace text by multiple matches in javascript?

There is a line in which there are several links framed by symbols <>
For example
"Ololo alala tararam pararam blablabla"
So. How can you catch all these links and replace them immediately with html tags?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Urich, 2016-03-04
@Urichalex

Understood. In replace, specify g in the regular expression, and there will be a global replacement

I
Ilham Karimov, 2016-03-04
@Ilham

There is text, but the link address is present?
Describe in more detail

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question