This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

non-printable special characters  RSS feed

 
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
 
Marshal
Posts: 58345
178
  • 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
 
Saloon Keeper
Posts: 8589
161
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!