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










share|improve this question
























  • 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

















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










share|improve this question
























  • 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















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










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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




















  • 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



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()