created by Brian LeRoux & Andrew Lunny. sparodically uncurated by David Trejo.

2014 03 13 regex test true false

    var re = new RegExp('Foo B', 'gi');
    alert(re.test('Foo Bar')); // true
    alert(re.test('Foo Bar')); // false
Fork me on GitHub