Re: strpos and wildcards

From: Date: Fri, 24 Jan 2003 16:29:54 +0000
Subject: Re: strpos and wildcards
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18077@lists.php.net to get a copy of this message
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" <dev@elstudion.com> To: <php-windows@lists.php.net> 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 > >

« previous php.windows (#18077) next »