File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

quick syntax question

 
Ronald Whalen
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
i am trying to print this statement out to a webpage.
out.println(" var filterOut1=/\D/;");

I want it to appear exaclty as is on the webpage. Unfortuntely I am getting the following error message:
Invalid string literal, cannot contain character '\?'

Any thoughts?

Thanks,
Ronald Whalen
 
Beksy Kurian
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this
out.println(" var filterOut1=/\\D/;");
Regards
Beksy
 
Ronald Whalen
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic