how can i lookup the index in a string where a regexp matches?

From: Date: Tue, 18 Nov 2008 14:46:32 +0000
Subject: how can i lookup the index in a string where a regexp matches?
Groups: php.general 
Request: Send a blank email to php-general+get-283450@lists.php.net to get a copy of this message
hi, i need to search with regexps in strings, and want to know the index (of the source string) at which the regexp matched. and the length of the matched string, so with substitutions like \d+.. i'm kinda in a hurry on this one, would appreciate your immediate answer very much.. -- -------------------------------------------------------------- Rene Veerman, creator of web2.5 CMS http://mediabeez.ws/

« previous php.general (#283450) next »