Javascript Regexp - Match Characters after a certain phrase

Subject:

examplevar phrase = "yesthisismyphrase=thisiswhatIwantmatched";var myRegexp = /phrase=(.*)/;

2015-04-21 09:14:01gstlouis

poorly written
references: http://stackoverflow.com/questions/4571531/javascript-regexp-match-characters-after-a-certain-phrase

var phrase = "yesthisismyphrase=thisiswhatIwantmatched";
var myRegexp = /phrase=(.*)/;
var match = myRegexp.exec(phrase);
alert(match[1]);

gstlouis
vote
2015-05-07 12:51:26

  /*
  * this expression will match anything afterid= //urlID[0]will give you an assoc pair
  */
  //urlID = url.match(/id=(.*)/);

gstlouis
vote
2016-03-07 11:07:36