added basic regex testing functionality