First version of regex