How to use the match function from xregexp

Find comprehensive JavaScript xregexp.match code examples handpicked from public code repositorys.

80
81
82
83
84
85
86
87
88
89

result = XRegExp.match('... catcat ...', merge);
console.log(result); // catcat
result = XRegExp.match('dogDOG', merge);
console.log(result); // dogDOG
result = XRegExp.match('... a+b*c ...', merge);
console.log(result); // a+b*c

// http://xregexp.com/api/#matchRecursive
var str = '(t((e))s)t()(ing)';
fork icon1
star icon0
watch icon2

+ 5 other calls in file