fork download
  1. <?php
  2.  
  3. $str = 'new "x";test>\'ok\'=blabla-bla;||inicio||var77|var2|44AsFGq72A7_7Aq770vAr45|variavel|randomvariavel75|87df".fim("0"...';
  4. preg_match_all( '/\|([A-Za-z0-9_]{23})\|/' , $str , $out );
  5. print_r($out);
  6.  
Success #stdin #stdout 0.02s 24144KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => |44AsFGq72A7_7Aq770vAr45|
        )

    [1] => Array
        (
            [0] => 44AsFGq72A7_7Aq770vAr45
        )

)