I’m looking for a regex to preg_replace in strings between curly brackets followed by $ symbol in this way:
{$string} //match
{$123string} //match
{string} //no match
{$string123} //match
[$string] //no match
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.
Let’s say you have
$string{$Emergento}.If you want to replace the entire string, then use:
If you want to replace $Emergento, then use:
and if you want to replace just Emergento, then use: