I am trying to create a small system that allows someone to enter a regex (in an admin system) to then be used to validate input.
What I am looking for is two things really:
a) To validate the regex is valid and won't cause errors
b) To created the delimiters, ie escape the actual regex. So for example if using preg_match("/*./" .... then the correct way to escape based on / or any other options.