Posts: 1,832
Location: Somewhere else entirely
|
PHP Code:
<?php
$extracted = "before<!-- start -->between<!-- end -->after";
preg_match("#<!-- start -->(.*?)<!-- end -->#",$extracted,$matches);
print $matches[1];
?>
Ought to do it.
EDIT, d'oh, it should be $matches[1]....
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
Last edited by 0beron : 03-27-2006 at 06:48 PM.
|