For the strings like:
""abc"""
It should be:
"abc"
But my attempt is failing by using:
preg_replace('/[\"]+/','"',$input);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This seems to work…
Short explanation of the regular expression –
"– this is the character we are looking for.+– the plus sign indicates that we are looking for one or more of the previously mentioned characters…My answer builds on a previous answer by @joey that has since been removed…
References –