say for example I would like to store regular expressions in a database in a way I would use it in a web form to check for valid user input for a form element.
Let's say I have my expression stored in a varchar column like this: /[a-z]/i
When I now retrieve that from the database and have the expression stored in a scalar $regex - How would I be able to use it in my code to match it against some $text?
In reply to Storing regexen in a DB and using them by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |