Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 5th, 2009, 11:09 PM
Authorized User
 
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default parsing a file

Hi,
I have text file which contains data in this way

DEBUG ooegroup.OoeGroupOnlineInterfaceImpl - PERFORMANCE MEASUREMENT :: BEFORE OOE RESERVE GROUP MEMBER Info >>>> Fri Apr 03 10:16:47 ICT 2009>
DEBUG ooegroup.OoeGroupOnlineInterfaceImpl - reserveOOEGroup :>
DEBUG ooegroup.OoeGroupOnlineInterfaceImpl - PERFORMANCE MEASUREMENT :: AFTER OOE RESERVE GROUP MEMBER Info >>>> Fri Apr 03 10:16:48 ICT 2009>
DEBUG reserve.ReserveOoeGroupResponseMapper - Start : mapToOOEGroupResponse>


each line starts with DEBUG

i need to read this text and take the strings which contains PERFORMANCE MEASUREMENT and split this

PERFORMANCE MEASUREMENT :: BEFORE OOE RESERVE GROUP MEMBER Info >>>> Fri Apr 03 10:16:47 ICT 2009>

into 1) BEFORE
2) OOE RESERVE GROUP MEMBER Info and 3) Fri Apr 03 10:16:47 ICT 2009

i mean to say into 3 tokens .


Thanks in advance

Regards
Raj
 
Old April 11th, 2009, 01:37 AM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

use regexp.





Similar Threads
Thread Thread Starter Forum Replies Last Post
AFP file Parsing arunsand Perl 1 May 14th, 2009 10:14 AM
Help Parsing XML File Sojan80 XML 7 January 7th, 2008 06:09 PM
Parsing CSV file using ExcelCSVParser johnaka888 Java Basics 0 August 20th, 2007 04:35 PM
Parsing an html file hydroxide Pro PHP 3 June 27th, 2006 02:12 AM
Parsing xml file ?? bikash XML 3 September 5th, 2003 06:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.