V
V
Vladimir Golub2021-08-18 17:42:37
JavaScript
Vladimir Golub, 2021-08-18 17:42:37

How to stop text selection on the first quote?

const regExp = new RegExp("(uploads\/.+)", 'g') // регулярка
const text = 'Привет мир "uploads/image.jpg"  ijiji " Привет мир "uploads/image.jpg" Привет мир "uploads/image.jpg"  ijiji'


I want to get 3 groups.

I do not understand. Is there full compatibility with lookahead and lookback or just chrome?

https://regex101.com/r/hhn087/1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2021-08-18
@RazerVG

add ?after+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question