Can I store and call regex in variables for later use?
- by adbox
I plan on storing regular expression codes in a database, but not sure how to get them from variable to function.
advise?
$i = "([wx])([yz])"
$j = "[^A-Za-z0-9]"
$k= "([A-Z]{3}|[0-9]{4})"
//Wold this execute properly, this really is the extend of my question?
preg_match($i, $string);