added "reg" clause for regex searches