How to extract the entire line with specific data from a Text in java?

How to extract the entire line with specific data from a Text in java?

Hi,

i would like to extract data from text like the following one:

[CODE] ........... 2011/01/12 The thread 001 title should clearly describe 2011/01/12 This describe or discussion topic. General 2011/01/12 This desc 002 nor discussion topic. General 2011/01/12 titles is 003 as 'Help Me' or 'Urgent' 2011/01/12 This describe or discussion topic. General ...........etc [CODE/]

I want to extract only lines with number like 001 or 002 , every line with a number like in the example but not lines without number.

The text content 500 lines but some of them don't contain number. in Java what method or function could i use to do my prog?

i know how to read specific line from text with the lineNumber but here it's different.

any help please. Thank you.

View Answers









Related Tutorials/Questions & Answers:
How to extract the entire line with specific data from a Text in java?
How to extract a specific line from a text file? - IoC
Advertisements
Read Specific Line from file Using Java
Read specific column data from text file in java
extract data from HTML
How can I get specific data from JSON
ModuleNotFoundError: No module named 'extract-specific-sites-from-msa'
ModuleNotFoundError: No module named 'extract-specific-sites-from-msa'
Delete specific lines from text in Java
How can I get specific data from JSON
Python extract data from JSON
java write to a specific line
Retrieving specific data from excel
extract data from excel sheet to mysql
How to read a large text file line by line in java?
How to get data from DB in to Text box by using Jsp & Ajax
how to display data from mysql table in text box using jsp??
difference between java5 and java6 - Java Beginners
How to extract HTML elements from a page?
How to extract HTML elements from a page?
ModuleNotFoundError: No module named 'extract-specific-lines'
ModuleNotFoundError: No module named 'extract-specific-lines'
How to extract details from XML? - JSP-Servlet
How to remove specific element from Hashset.
Java2
Importing data into sql plus from a text file...
Importing data into sql plus from a text file...
How to extract name,surname, doamin name from mailid
Javah
How to write file text In New Line
how to read 100 text files from a folder or directory and write the data into a single file.using java programming?
Extract File data into JTable
How to extract values from SOAP Response message and insert in database
about java1
convert data from pdf to text file - Java Beginners
Retriving data from MYSQL without line break using java
How to run PHP Script from the command line ?
How to read a line from a doc file
How to invoke method of a library from command line
extract content from javamail - JavaMail
Retrive data from databse to a text field - Java Server Faces Questions
create login page using data from text file
How to copy text from a gif image
Extract frames from Video File
How to get specific index value from int buffer.
How to get specific index value from ByteBuffer in java.
How to read text from - Java Beginners
how to retrieve data from database ?????/
how to retrieve data from database ?????/
how to retrieve data from database ?????/

Ads