08-12-2010, 06:05 PM
|
#2 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
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. 
|
|
|
|