On Fri, Sep 23, 2011 at 13:21, Tim Streater wrote:
>
> Dan,
>
> Thanks for the suggestion but I need to know where the string occurs as I
> want to then do some excision/incision.
Consider preg_replace() with that same pattern. Or, at the most
involved, preg_replace_callback().
--
Networ
On Sun, Sep 18, 2011 at 15:12, Tim Streater wrote:
> At the moment, I'm doing this:
>
> $start = stripos ($body, "
> You'll note the space after the ' for ' $loc'th character, and returning the location of the string in $start.
>
> I had a look at the PCRE and POSIX regexp functions to no avail.
At the moment, I'm doing this:
$start = stripos ($body, "--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo