Welcome to the community! You could do the same as discussed in the post discussed previously:
This discussion should also be helpful:
In addition to the post discussed previously you could also have a look at our support article Restricting Text Responses With Regular Expressions. It should be more helpful as it attempts to capture a wide range of examples.