I
I
Ingerniated2018-03-25 20:21:43
JavaScript
Ingerniated, 2018-03-25 20:21:43

How to find values ​​in a regular expression in repeating conditions?

var text = "Hello  and hello ";
var res = text.match(/\[\[.*\]\]/);

displays the result, and hello
but how without intermediate values and hello?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-03-25
@Ingernirated

text.match(/\[\*\]\]/g)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question