Re: preg_match() occurence position

From: Date: Thu, 25 Jul 2002 23:19:27 +0000
Subject: Re: preg_match() occurence position
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109621@lists.php.net to get a copy of this message
On Thu, 25 Jul 2002, lallous wrote: > Yes, I'm aware of the strpos() or any other non-regexp string functions... > > but it is either I use regexp to match a certain pattern or I'll have to > write a char-by-char parser to emulate regexp searching and yet get the > position of the occurence! Once you have found the matching string with preg_match, you can use strpos() to see where it was. miguel

« previous php.general (#109621) next »