I'm using CodeIgniter to set up a shopping cart. In doing so, I noticed that CI does not allow any products with accented characters to be added to the cart. This is defined in the following regex:
var $product_name_rules = '\\.\\:\\-_ a-z0-9'; // alpha-numeric, dashes, underscores, colons or periods
However, I'm having to add products with names such as "Côtes du Rhône", or "Crème d’Abricot", which have accents as well as the occasional apostrophe.
Question: how do I modify the above regex to include these characters?