Results 1 to 6 of 6
Thread: split square brackets [].
- 01-05-2011, 03:05 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
- 01-05-2011, 03:07 PM #2
You mean you just want to remove them?
Try either String.substring() or String.removeAll().
The API is your friend: Java Platform SE 6How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 01-05-2011, 03:35 PM #3
Senior Member
- Join Date
- Dec 2010
- Posts
- 165
- Rep Power
- 3
- 01-06-2011, 12:42 PM #4
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
Text given like that
[Wright, Jeff (VI), 1988 NFL Draft (1988) , 1990 AFC Championship Game, 1992 AFC Championship Game]
and i want to it without square brackets, like that
Wright, Jeff (VI), 1988 NFL Draft (1988) , 1990 AFC Championship Game, 1992 AFC Championship Game
how can i do that
- 01-06-2011, 01:10 PM #5
Senior Member
- Join Date
- Dec 2010
- Posts
- 165
- Rep Power
- 3
then use replaceAll()
Java Code:string.replaceAll("\\[|\\]","");
- 01-06-2011, 01:33 PM #6
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
use of <> brackets
By dqlevitt in forum New To JavaReplies: 3Last Post: 05-27-2010, 09:34 PM -
Arrowhead brackets
By dushmantha.e in forum New To JavaReplies: 5Last Post: 02-14-2010, 09:08 AM -
How to split a String using split function
By Java Tip in forum java.langReplies: 4Last Post: 04-17-2009, 08:27 PM -
Bracket help - can't find the missing brackets.
By Z E P H Y R in forum New To JavaReplies: 0Last Post: 03-17-2009, 10:26 PM -
How to split a String using split function
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:32 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks