fork(12) download
  1. <?php
  2.  
  3. $text = "1st line\n#test line this \nline #new line\naaaa #aaaa\nbbbbbbbbbbb#\ncccccccccccc\n#ddddddddd";
  4. preg_match_all("/^#(.*)$/m",$text,$m);
  5. print_r($m[0]);
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
Array
(
    [0] => #test line this 
    [1] => #ddddddddd
)