View Single Post
Old 08-12-2010, 06:05 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

This part, (?:$|(?=\/), means that the pattern will only match at the end of the string ($) or at the point immediately before a forward slash ((?=\/)). Hopefully that explains the results that you're (not) getting.
Salathe is offline  
Reply With Quote