• Post Reply Bookmark Topic Watch Topic
  • New Topic

non-printable special characters  RSS feed

 
akhter wahab
Ranch Hand
Posts: 151
Java MyEclipse IDE Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am writing excel file using jxl library but there are non-printable special characters in the text how can i remove that thanks in advance
 
Campbell Ritchie
Marshal
Posts: 56520
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a job for a regular expression.
 
akhter wahab
Ranch Hand
Posts: 151
Java MyEclipse IDE Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Sounds like a job for a regular expression.


i already found two regex but don't know what exactly they are doing here are the both regex


can you please elaborate these regex
Regards
 
Stephan van Hulst
Saloon Keeper
Posts: 7962
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first one replaces all non-printable characters with the empty string. The second one replaces all control characters (not necessarily every non-printable character) with the empty string.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!