I have to get a book for regex, but until then I should get some help to solve one of my problems...
I have a website and started optimizing it for search engines using apache's mod_rewrite. Everything went as planned except the fact that when I have a title of a product called: Pizza - 3 Slices, I want to remove both space and hyphen so the url will look like: Pizza3Slices.
I tried preg_replace but being a complete regex newbie only thing I could accomplish is to remove either the space or the hyphen.
preg_replace("/ /", "", $row['b_name'])
or
preg_replace("/-/", "", $row['b_name'])
Any help?