change () to [] and updated regex

I changed the $_POST( ) to $_POST[ ] to meet proper PHP syntax and updated the regular expression to also catch the first sentence replaces. It seems to be working now. Neat project Desmond!