How to solve Invalid regular expression error when running app in android in React Native?

Viewed 33

I am running an android app in React native. Since I use regex when I run the app Invalid regular expression: Invalid group specifier name I get an error saying no stack.

Looking for a problem, it say this is look behind problem.

then how can i change my regex?

this is my regex

let regex = /^\.|\.$|(?<=\..*)\.|[^\d.]/g;

How can I resolve this problem?

0 Answers
Related