Posted: Tue May 15, 2007 1:35 pm
the $ sign is for what ??
EDIT
--------------------------------------------------
I see
/(.*?)(\W+?)(\1$)/ Matches only str@str not str@st not str@stry
But
/(.*?)(\W+?)(\1)/ Matches str@stry But shows
EDIT
--------------------------------------------------
I see
/(.*?)(\W+?)(\1$)/ Matches only str@str not str@st not str@stry
But
/(.*?)(\W+?)(\1)/ Matches str@stry But shows
It also matches str@st But showsArray
(
[0] => str@str
[1] => str
[2] => @
[3] => str
)
So why here is the Difference due to the '$' Sign ??Array
(
[0] => @
[1] =>
[2] => @
[3] =>
)