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
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
Hi,
maby I am missing something, but I am trying to find a way to find the N
position/character in a String of a regular expression match. For example,
if I look for the pattern "abba" in 200 character length string, I would
like to know where, at what position that match was made. Any ideas? Than
3 matches
Mail list logo