first version of regex tool