it's not an eloquent solution, but if i treat the paste as a string, and replace it inside """...""" , then it's at least buffered, saved, and can be retrieved without a threat to the db. please let me know if this does not sound rational. tia, greg
On May 13, 3:33 pm, Aydın ŞEN <[email protected]> wrote: > 2010/5/13 geekbuntu <[email protected]> > > > > > now if i write this to a table, how can i make it to the original > > string again? > > if you wont have any "\" character in your string this may work otherwise it > looks difficult to determine which is original "\" which is to split > > >>> string = ' > > http://ayaz.wordpress.com/2007/04/22/reescape-pythons-equivalent-of-p...><><><' > >>> escaped = re.escape(string) > >>> print "".join(escaped.split("\\")) > > http://ayaz.wordpress.com/2007/04/22/reescape-pythons-equivalent-of-p... > > ><><>< > > -- > Aydın Şen > > -- > You received this message because you are subscribed to the Google Groups > "web.py" 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 > athttp://groups.google.com/group/webpy?hl=en. -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
