create a regex test code