At one point I had this idea that it is better to limit the frequency that my website has to execute a PCRE command. To this end I created a script that would format my articles before submitting them to the database. In my case I was replacing hyphens with actual dashes before being stored in the database. In my particular case I am pretty sure dash is a non alphanumeric character.
Would it be better in this case to use PCRE to format the text after it is retrieved from the database despite the increased PCRE usage?
I am curious which is the better coding practice.



Reply With Quote
Bookmarks