• Post Reply Bookmark Topic Watch Topic
  • New Topic

Filtering Escape characters  RSS feed

 
sudha somasundaram
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do filter the escape characters like '&','\',''','"',.... from the text and display a text free from escape characters .
 
Campbell Ritchie
Marshal
Posts: 56581
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try going through it finding the index of every \ and deleting the character one beyond that.

There is probably a much better way to do it with regular expressions, but I can never remember how to use regexes. Anybody else know how to do it?

CR
 
Campbell Ritchie
Marshal
Posts: 56581
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just next to your thread, there is this one, about something very similar. Please look at that too. See whether my suggestion works at all.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!