match all after regex
?(.*)
match all after regex
?(.*)
regex match everything before string
/.+?(?=abc)/
regex before and after character
const string = 'host_shopping.sql';
const regex = new RegExp('(?<=[_]).*(?=[.])');
let regArray = regex.exec( string );
console.log( regArray[0] );
// shopping
console.log( string.test(regex) );
//true
/*
-> regex before & after character.
-> with no group and can find at 0 index.
-> lookbehind and lookahead must be supported where to use.
*/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us