Hi Franceso, Entity keys use URLsafe base64 encoding, which uses - and _ in place of + and /.
-Nick Johnson On Tue, Sep 14, 2010 at 2:34 PM, Francesco Donadon <[email protected]>wrote: > Hello. > > I am developing an application using django, and I need a regexp to > match the stringified keys in an URL, so that I can use urls like "/ > view/<key>". > > I started off using letters and digits, but then I realised searching > in this group that the key in its string format is > actually a base64 encoding of something. > > I saw that one of the two symbols used by the google implementation of > base64 is the hyphen (-), but I have not been able to experimentally > find the other symbol (there must be another one), nor find an answer > searching. > > For now I am capturing all the other symbols that I've read on > wikipedia, that is plus (+), underscore (_) and dot(.). > I assume that the slash is out of discussion, as Google recommends > using keys in URLs. > > So my question is, as I am a perfectionist :-), which is the other > symbol that may appear in the keys beside the hyphen? > > Thank you very much for your replies, and for the marvellous job in > creating AppEngine. > > Best Regards, > Francesco Donadon > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en.
