Paul Denning wrote:
Can someone provide a regexp for the last path component?
The following Perl-compatible regexp seems to do the trick:
/^
[^\#\?]* # Stuff at front (ignore)
\/([^\/]+)\/?# Last path component
(\?.*)? # Query
On 7 Jun 2008, at 16:48, Toby A Inkster wrote:
Paul Denning wrote:
Can someone provide a regexp for the last path component?
The following Perl-compatible regexp seems to do the trick:
/^
[^\#\?]* # Stuff at front (ignore)
\/([^\/]+)\/?# Last path
relTag [1], del.icio.us, and numerous other sites use the last path
component for the (folksonomy) tag.
[1] http://microformats.org/wiki/reltag#Abstract
Can someone provide a regexp for the last path component?
Paul
___
microformats-discuss