Results 1 to 4 of 4
Apr 12, 2010, 01:54 #1
Regex to allow for accented characters and apostrophes?
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
Question: how do I modify the above regex to include these characters?
Apr 12, 2010, 02:00 #2
Wanted to add that alternatively, any regex that will allow for html-entities would do the trick as well, for instance with a product name such as "Cuveé du Vigneron" (é = #233 html entity)...
Apr 12, 2010, 02:01 #3
- Join Date
- Apr 2008
- North-East, UK.
- 3 Post(s)
- 0 Thread(s)
Have you looked into *why* it doesn't allow them to be added to the cart? Personally I cannot think of one, other than the URI filtering it applies to routes, but you may find there's a reason behind it.
Just a thought.
Apr 12, 2010, 02:09 #4