within a do while loop, check for a '>' with the strpos() function
if the next character isn`t a < or a & then you have found the spot to start
extracting from, otherwise...
jettison all of the string up to and including the found '>' with the
substr() function and repeat the process (loop) on the remainder of the
string.  The loop quits when you have either found the spot or you run out
of string.

Please note I haven`t checked the above code for syntax errors.




----- Original Message -----
From: "Bobo Wieland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 12:24 AM
Subject: [PHP-WIN] strpos and wildcards


> Hi!
>
> I need to find the first occurence of a '>' that isn't followed by a '<'
or
> a '&' in a string and then use the index to extract a substring... How do
I
> do this?
>
> Anyone?
>
> .bobo
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to