\ is an escape character so you either need to escape it ('\\') or use a raw string (r'\')
On Jan 29, 3:36 pm, Aramaki <ciber...@gmail.com> wrote: > Hi, my code needs to trim special characters from users imput but > there is one I can't > > how can I trim '\' from a string without error > > chr(92) doesn't work, ord () throw an error when facing ' \ ' and I > don't really see how to implement unicode formating in that way. > > I am sure that wiht 2-3 line this must be done but I don't see the > way. > > I will apreciate any help, thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---