Storing expressions in variables for regex/pattern matching and replacing
Posted on 2005-03-17
I hope I can explain this properly. I am creating a system that will generate a link for a user to sites from any state in the U.S. The link is different on each site, but with a little massaging, it should be doable programatically. The user will be prompted with a year and item number. I would like to be able to store in a table, all the formulas necessary to deal with the 50 different ways that I have to build the link for it to work. Is there a way to either store a regular expression, or actual php command(s) in a string, and then execute it(them)? Sorry, this is way out of my realm as far as php goes.