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

Ads
 

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

Ads









Related Tutorials/Questions & Answers:
How to extract the entire line with specific data from a Text in java?
Read specific column data from text file in java
Advertisements
Delete specific lines from text in Java
extract data from HTML
ModuleNotFoundError: No module named 'extract-specific-sites-from-msa'
ModuleNotFoundError: No module named 'extract-specific-sites-from-msa'
java write to a specific line
How to read a large text file line by line in java?
Retrieving specific data from excel
extract data from excel sheet to mysql
how to display data from mysql table in text box using jsp??
How to remove specific element from Hashset.
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?
How to extract name,surname, doamin name from mailid
Javah
ModuleNotFoundError: No module named 'extract-specific-lines'
ModuleNotFoundError: No module named 'extract-specific-lines'
Importing data into sql plus from a text file...
Importing data into sql plus from a text file...
Java2
How to run PHP Script from the command line ?
How to extract values from SOAP Response message and insert in database
How to copy text from a gif image
how to retrieve data from database ?????/
how to retrieve data from database ?????/
how to retrieve data from database ?????/
how to retrieve data from database ?????/
how to fetch data from servlet ????
How to invoke method of a library from command line
how to match the key word from a text file

Ads