Question: How to replace double quoted string with bold in PHP?
$description='Hello "dude", how are you?'; echo preg_replace('/"([^"]+)"/', '$1', $description);
Output
Hello dude, how are you?
Question: How to replace bracket string with italic in PHP?
$description='Hello (dude), how are you?'; echo preg_replace('/\(([^)]+)\)/', '$1', $description);
Output
Hello dude, how are you?