File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Nov 16, 2004
Feb 12, 2008 09:40:00
I have tried myString.replace(///g,"") but it generates an error.
Author and ninkuma
Joined: Jan 10, 2002
Feb 12, 2008 10:19:00
You need to bone up on regular expression syntax. because the / is used as the delimiter, you cannot just use it straight-away inside the expression. You need to delimit it the same way you would delimit a quote inside a string literal.
Asking smart questions
Books by Bear
Don't get me started about those stupid
subject: Replaceing Characters
Cant use object from another class
Posting to bump up my count...
WA #1.....word association
Text box value is not being completely filled with request attribute
The x900 effect ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014