Getting String between two strings with Javascript.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 644
var value = "vishal and neeraj";
var first_variable = "vishal";
var second_variable = "neeraj";
value.match(new RegExp(first_variable + "(.*)" + second_variable));

Comments or Responses

Login to post response