I am trying to make a regular expression that will select an entire line in a string with multiple carriage returns.
Something like this doesn't work very well:
<?
$boogle = "
blah blah blah
123 blah blop
boop";
ereg('123.*
', $boogle, $myarray);
print_r($myarray);
?>
Ideally, I would like to find a some sort of symbol that I could place in a regular expression to represent a carriage return... and for that matter, a tab.
Thanks,
Amitrus