F
falcon
I have a very strange problem. I want to replace every thing in a
string except letters, numbers, space, and certain symbols listed in
the regex expression below
"blahblah !@#$%^&*()--.,<>=".replaceAll("[^A-Za-z0-9/-?
).,'+^| ]","")
I expect to get the following string back:
"blahblah ^().,"
but I actually get the following:
"blahblah ^().,<>="
Notice the greater/less than and equals signs are still there!
I did a quick check using this site:
http://www.fileformat.info/tool/regex.htm and I get the same result
back. What's going on here???
string except letters, numbers, space, and certain symbols listed in
the regex expression below
"blahblah !@#$%^&*()--.,<>=".replaceAll("[^A-Za-z0-9/-?
I expect to get the following string back:
"blahblah ^().,"
but I actually get the following:
"blahblah ^().,<>="
Notice the greater/less than and equals signs are still there!
I did a quick check using this site:
http://www.fileformat.info/tool/regex.htm and I get the same result
back. What's going on here???