Literal iterator for regular expressions added (test function for main included)