3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'REXEL : Votre dossier Primexel n°@ref_dossier@ expire le @date_expiration@'; preg_match_all('/@([^@]+)@/i', $str, $matches); print_r($matches);
Output for 5.3.7 - 7.2.0
Array ( [0] => Array ( [0] => @ref_dossier@ [1] => @date_expiration@ ) [1] => Array ( [0] => ref_dossier [1] => date_expiration ) )