React native giving error in regex which contains look behind
up vote
-1
down vote
favorite
mystring.match(/((?<=paid/)|(?<=trial/))[0-9]*(?=/)/gm);
is giving error
Invalid regular expression: unrecognized character after (?)
React native version: 0.55.4
javascript react-native
add a comment |
up vote
-1
down vote
favorite
mystring.match(/((?<=paid/)|(?<=trial/))[0-9]*(?=/)/gm);
is giving error
Invalid regular expression: unrecognized character after (?)
React native version: 0.55.4
javascript react-native
Lookbehind aside,"/": An unescaped delimiter must be escaped with a backslash ()
– CertainPerformance
Nov 7 at 9:13
try this .escape the '/' regex101.com/r/5FxUVE/1
– prasanth
Nov 7 at 9:14
Im sorry i have provided with escape its escaped in editor
– OK200
Nov 7 at 9:19
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
mystring.match(/((?<=paid/)|(?<=trial/))[0-9]*(?=/)/gm);
is giving error
Invalid regular expression: unrecognized character after (?)
React native version: 0.55.4
javascript react-native
mystring.match(/((?<=paid/)|(?<=trial/))[0-9]*(?=/)/gm);
is giving error
Invalid regular expression: unrecognized character after (?)
React native version: 0.55.4
javascript react-native
javascript react-native
edited Nov 7 at 9:20
asked Nov 7 at 9:12
OK200
376312
376312
Lookbehind aside,"/": An unescaped delimiter must be escaped with a backslash ()
– CertainPerformance
Nov 7 at 9:13
try this .escape the '/' regex101.com/r/5FxUVE/1
– prasanth
Nov 7 at 9:14
Im sorry i have provided with escape its escaped in editor
– OK200
Nov 7 at 9:19
add a comment |
Lookbehind aside,"/": An unescaped delimiter must be escaped with a backslash ()
– CertainPerformance
Nov 7 at 9:13
try this .escape the '/' regex101.com/r/5FxUVE/1
– prasanth
Nov 7 at 9:14
Im sorry i have provided with escape its escaped in editor
– OK200
Nov 7 at 9:19
Lookbehind aside,
"/": An unescaped delimiter must be escaped with a backslash ()
– CertainPerformance
Nov 7 at 9:13
Lookbehind aside,
"/": An unescaped delimiter must be escaped with a backslash ()
– CertainPerformance
Nov 7 at 9:13
try this .escape the '/' regex101.com/r/5FxUVE/1
– prasanth
Nov 7 at 9:14
try this .escape the '/' regex101.com/r/5FxUVE/1
– prasanth
Nov 7 at 9:14
Im sorry i have provided with escape its escaped in editor
– OK200
Nov 7 at 9:19
Im sorry i have provided with escape its escaped in editor
– OK200
Nov 7 at 9:19
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53186413%2freact-native-giving-error-in-regex-which-contains-look-behind%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Lookbehind aside,
"/": An unescaped delimiter must be escaped with a backslash ()
– CertainPerformance
Nov 7 at 9:13
try this .escape the '/' regex101.com/r/5FxUVE/1
– prasanth
Nov 7 at 9:14
Im sorry i have provided with escape its escaped in editor
– OK200
Nov 7 at 9:19