Detect special character from a String
800332Jul 26 2010 — edited Jul 30 2010Hello guys,
Some of the files in unix box contain special characters . I need to strip these special character in the filename to underscore. however, I do not want to strip off special character like _ - ^ . @
Pattern escaper = Pattern.compile("([^a-zA-z0-9_-^.@])");
I couldn't strip off the caret. Appreciate any advice please. Thanks in advance!
Cheers,
Mark