Hi,
I'm working with django-tagging and for simplicity while testing and
prototyping I have been using urlencoded-tags in URLs (seems that is about to
change*, so this likely will be moot for me).
When a tag contains a comma i.e. "smith, john" it gets encoded and works fine
_until_ I want to specifically identify it within a URL conf.
url(r'^/(?P<tag>[\w\d \-\+,]+)/$'...
Will not work (nor will escaping the comma).
Any ideas, comments or suggestiosn about this?
Thanks
S
PS: I also discovered that non-greedy syntax does not _appear_ to work i.e.
/[\w\d]+?/
will select both
/path/name/
and not just
/path/
or
/name/
depending upon the rest of the string, of course. The
classic example is the pattern '\<.*\>' will match
everything on this following string.
<span>Some text</span>
but '\<.*?\>' will only match <span>
* I have a bunch of 'knowledge' stored hierarchically regarding tags (or
keywords) so the idea of a simple set of tags is falling apart. Yes, some of
that is possible by unions & intersections, but some isn't 8^(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---