• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Replace unuseless characters in a String

 
Mirco H Schmidt
Greenhorn
Posts: 7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a String, where I want to replace all the text starting from "{\\rtf1\\ansi" until "\\fs24",
both marked in BOLD.
Can anybody help, how I can replace this with regular expressions ?
Thanks Mirco
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mirco schmidtfo wrote:


Please check your private messages for an important administrative matter.
 
Rob Spoor
Sheriff
Pie
Posts: 20611
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks like RTF, which means that these characters are most definitely not useless. Check out AccessingFileFormats for tips on reading RTF files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic