var str = "This is an example about regex for poftut.com";
var re = new RegExp( "poftut", "g" );
var result = re.exec(str);
str is the text data we want to regex. re is our regex object to regex. re.exec() gets...