Only execute matches if RegExp is entered