Re: [PHP] find string position using reg exp

2004-03-29 Thread Ben Ramsey
RD> Why use a regular expression? RD> strpos() will do this just fine. strpos() will do it just fine, but if you need to use a regular expression to match a specific pattern and return the location in the string, preg_match() will also do this when you use the flag PREG_OFFSET_CAPTURE. -- Regar

Re: [PHP] find string position using reg exp

2004-03-29 Thread Richard Davey
Hello Christian, Monday, March 29, 2004, 10:28:53 AM, you wrote: CC> maby I am missing something, but I am trying to find a way to find the N CC> position/character in a String of a regular expression match. For example, CC> if I look for the pattern "abba" in 200 character length string, I would