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

2008-11-18 Thread Rene Veerman
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.. --

Re: [PHP] how can i lookup the index in a string where a regexp matches?

2008-11-18 Thread Rene Veerman
Rene Veerman wrote: 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

RE: [PHP] how can i lookup the index in a string where a regexp matches?

2008-11-18 Thread Boyd, Todd M.
-Original Message- From: Rene Veerman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 8:47 AM To: php php Subject: [PHP] how can i lookup the index in a string where a regexp matches? hi, i need to search with regexps in strings, and want to know the index (of the

RE: [PHP] how can i lookup the index in a string where a regexp matches?

2008-11-18 Thread Boyd, Todd M.
-Original Message- From: Rene Veerman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 8:50 AM To: php php Subject: Re: [PHP] how can i lookup the index in a string where a regexp matches? Rene Veerman wrote: hi, i need to search with regexps in strings, and want to