heath
10-28-1999, 06:07 PM
Should be easy for the wizards here:<?
## Attempting to grab/extract text between "<open>" and "<close>" below
$str = "a bunch of irrelevant stuff text here
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]<open>
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]Start grabbing text here
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]More misc stuff here
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]<close>
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]lots of stuff to ignore here";
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]
## my reg. expressions are very week, but here's a variation of what
## I've been trying:
$new = ereg (^<open>+<close>, $str);
?>
## Attempting to grab/extract text between "<open>" and "<close>" below
$str = "a bunch of irrelevant stuff text here
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]<open>
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]Start grabbing text here
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]More misc stuff here
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]<close>
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]lots of stuff to ignore here";
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]
## my reg. expressions are very week, but here's a variation of what
## I've been trying:
$new = ereg (^<open>+<close>, $str);
?>