I
I
igossmart2019-10-07 16:14:31
JavaScript
igossmart, 2019-10-07 16:14:31

What causes IOS to have a JS regex issue?

Goodness, I ran into a problem that IOS devices do not understand JS regular expressions, not all, but only one, but very important for the project. Because of the regular expression, the execution of the script stops. the problem is that IOS does not understand or something else "?<=" and "?<", when I remove them it works, but the meaning of the search changes. Tell me where to look and how it is solved? Thanks in advance
let reg = /(?<=<tag>)([\s\S]*?)(?=<\/tag>)/g;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2019-10-07
@igossmart

https://caniuse.com/#feat=js-regexp-lookbehind

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question