[eluser]Shodan[/eluser]
Hi all,
I'm working on a site that will be using product names in site's page URLs.
I'm redesigning the site so the data already exists. Unfortunately, there's lots of '/'s and '&'s in existing product names so I need to scan through the database and remove any illegal characters from the product (and category) names.
Is there a simple way to scan a string for illegal characters and remove them (or at worst, replace with white space)? I'd also like to replace all the ampersands with the word: "and".
I know this is a job for Regex but to be honest, it baffles me and I can't seem to find a decent, straightforward tutorial.
Thanks in advance for any help!
Regards,
Terry