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