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

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
extract data from HTML
How can I get specific data from JSON
Delete specific lines from text in Java
ModuleNotFoundError: No module named 'extract-specific-sites-from-msa'
ModuleNotFoundError: No module named 'extract-specific-sites-from-msa'
How can I get specific data from JSON
java write to a specific line
Retrieving specific data from excel
Python extract data from JSON
extract data from excel sheet to mysql
How to read a large text file line by line in java?
how to display data from mysql table in text box using jsp??
How to remove specific element from Hashset.
ModuleNotFoundError: No module named 'extract-specific-lines'
ModuleNotFoundError: No module named 'extract-specific-lines'
Java2
Importing data into sql plus from a text file...
Importing data into sql plus from a text file...
Javah
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
How to write file text In New Line
How to extract values from SOAP Response message and insert in database
How to run PHP Script from the command line ?
How to copy text from a gif image
How to invoke method of a library from command line
how to match the key word from a text file
extract content from javamail - JavaMail
create login page using data from text file

Ads