I have a string say $myString which can contain any case of number, letter, weird character and spacing
I need to do the following:
make it all lower case
replace spaces with -
remove everything that is not a-z 0-9 space . or -
replace multiple instances of - (caused by replacing spaces with -) to just -
So, something like "abcDEF % %%:@~1 23.jPg" would become "abcdef-1-23.jpg"
full regex and php please