This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Does anyone know if there is an escape character that represents a space? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Does anyone know if there is an escape character that represents a space?

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
Does anyone know if there is an escape character that represents a space?

Thanks,
James
Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
By escape character do you mean similar to \n, \r, or do you mean a unicode character like \u0763.

If you mean like \n, I don't think so and can't think of a reason for it. If you mean like a unicode character, then yes and you should be able to search for a unicode list.

You might also mean for a regex, and there is an 'escape character' for space in regex. I think it's \s, but don't quote me on that you should be able to do a google search and find that in a minute or two.

Maybe some more details as to what you're looking for would help.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Discussion is continued here: http://www.coderanch.com/t/376132/java/java/Does-anyone-know-if-there

Closing...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Does anyone know if there is an escape character that represents a space?
 
Similar Threads
What is @(#)classname.java in Java Header?
URL encoded data breaking
Saving esacpe characters to file
Strange output
spaces in url