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
difference between java5 and java6 - Java Beginners
how to display data from mysql table in text box using jsp??
ModuleNotFoundError: No module named 'extract-specific-lines'
ModuleNotFoundError: No module named 'extract-specific-lines'
How to extract HTML elements from a page?
How to extract HTML elements from a page?
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...
Javah
How to extract name,surname, doamin name from mailid
how to read 100 text files from a folder or directory and write the data into a single file.using java programming?
How to write file text In New Line
Extract File data into JTable
convert data from pdf to text file - Java Beginners
about java1
How to extract values from SOAP Response message and insert in database
Retriving data from MYSQL without line break using java
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
Extract frames from Video File
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
retrieve the data to text fields from database on clicking the value of combo box
place data in text fields from database using jdbc
While retrieving text from database onto JSP, the alignment of line and paragraphs is not followed
About Java2
How to copy text from a gif image
ModuleNotFoundError: No module named 'google_screener_data_extract'
How to get specific index value from int buffer.

Ads