A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Java in General
Parsing a Stirng consisting of tabs and newlines
Joined: Mar 08, 2006
Aug 29, 2006 00:45:00
I have a
which consists of tabs and newlines in it.
I want to parse it using
Can anyone provide me some piece of code to do the same.
Ex: Suppose i have a string as follows:
Srikanth <enter a tab here> Gupta
<enter a newline here>
From <enter a tab here> India
Output should be
Please help me.
Joined: Jun 06, 2005
Aug 29, 2006 00:58:00
You may wish to use String.split(regex) method. Is that all you were looking for ?
Joined: Apr 14, 2004
Aug 29, 2006 02:09:00
Not an advanced topic. Moving...
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Parsing a Stirng consisting of tabs and newlines
Not able to Bookmark tab selection of Richfaces
removing newline and tabs from a string
How to activate tab with the help of div tag
String Split or StringTokenizer and Tabs
How to invoke a jsp page from a jsp page.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015