Results 1 to 7 of 7
- 02-25-2009, 01:41 AM #1
Member
- Join Date
- Jan 2009
- Posts
- 37
- Rep Power
- 0
- 02-25-2009, 01:46 AM #2
- 02-25-2009, 01:48 AM #3
oh ic, this forum stripped out the spaces.
s.replaceAll("\\s+"," ");Last edited by angryboy; 02-25-2009 at 01:53 AM.
USE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)
- 02-25-2009, 01:56 AM #4
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 5
html doesn't render multiple spaces =p
edit: ok that just sounded wrong. browsers do the rendering, but yeah... normally won't render consecutive spaces... i'll shut up nowLast edited by emceenugget; 02-25-2009 at 01:58 AM. Reason: i sounded stupid
- 02-25-2009, 01:58 AM #5
Member
- Join Date
- Jan 2009
- Posts
- 37
- Rep Power
- 0
oh lol, I need to do what this Forum does!
s.replaceAll("\\s+"," ");
Worked perfectly, thank you.
- 02-26-2009, 01:23 AM #6
Member
- Join Date
- Jan 2009
- Posts
- 37
- Rep Power
- 0
ok, that worked for spaces at the middle and end of the string but it doesn't remove spaces at the beginning of the string, how would I remove all the spaces at the beginning of a string?
- 02-26-2009, 01:26 AM #7
Member
- Join Date
- Jan 2009
- Posts
- 37
- Rep Power
- 0
Similar Threads
-
How do i add spaces ~(very simple)
By soc86 in forum New To JavaReplies: 3Last Post: 11-02-2008, 02:01 AM -
Caesar and encoding with block spaces
By Franneldort in forum New To JavaReplies: 13Last Post: 10-30-2008, 04:48 PM -
Load URL that contains spaces?
By barkster in forum Java AppletsReplies: 0Last Post: 01-30-2008, 09:40 PM -
Converting multiple banded image into single banded image... Image enhancement
By archanajathan in forum Advanced JavaReplies: 0Last Post: 01-08-2008, 05:29 PM -
Help with a word, if it is divided by spaces
By baltimore in forum New To JavaReplies: 1Last Post: 08-07-2007, 06:31 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks