setting the regex and queue