var reg = new RegExp('\\b'+subquery+'\\b', 'gi');
//var reg = new RegExp('\\b(' + subquery + ')\\b');
var result;
while((result = reg.exec(pageContent)) !== null) {
matchesWithLength.push({
match: result.index,
matchLength: subqueryLen,
skipped: false
});
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.