Remove special chars from URL
- by John Jones
Hi,
I have a product database and I am displaying trying to display them as clean URLs, below is example product names:
PAUL MITCHELL FOAMING POMADE (150ml)
American Crew Classic Gents Pomade 85g
Tigi Catwalk Texturizing Pomade 50ml
What I need to do is display like below in the URL structrue:
www.example.com/products/paul-mitchell-foaming-gel(150ml)
The problem I have is I want to do the following:
Remove anything with braquets(and the braquets)
Remove any numbers next to g or ml e.g. 400ml, 10g etc...
I have been banging my head trying different string replaces but cant get it right, I would really appreciate some help.
Cheers