Fixed regExp: added global search option