<?php $string = '[Salut] [toi][,] [ça] [va] [?]'; $regex = '/\[.*\]/im'; preg_replace($regex, '$1', $new_string); var_dump($new_string);
You have javascript disabled. You will not be able to edit any code.