fork download
  1. <?php
  2. preg_match("/(?<=_).*?(?=.UTF-8)/", "de_DE.UTF-8", $match);
  3. print_r($match)
  4. ?>
Success #stdin #stdout 0.02s 25676KB
stdin
Standard input is empty
stdout
Array
(
    [0] => DE
)