Add regex for query