var value = "vishal and neeraj";var first_variable = "vishal";var second_variable = "neeraj";value.match(new RegExp(first_variable + "(.*)" + second_variable));
Login to post response