What is the difference between:
$do = preg_replace("/[^a-z]/", "", $do);
and
$do = preg_replace("/([^a-z])/", "", $do);
both of them works to remove non-alphabetic characters.
There is no difference here. By the way, use single quotes for regular expression patterns: that allows you to simplify when you write more complex expressions that contain characters that would otherwise need to be escaped.
Thank you laserlight.
I just opened another thread about single and double quotes because there are a lot of questions for me.