[uf-discuss] regexp for last path component

2008-06-07 Thread Toby A Inkster
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

Re: [uf-discuss] regexp for last path component

2008-06-07 Thread Geoffrey Sneddon
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

[uf-discuss] regexp for last path component

2008-06-06 Thread Paul Denning
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