Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-11-2005, 07:14 PM   #1
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
Question regular expression question

i have particular lines in a data file that i want to parse using python. each line starts with the text "dataset" as a sort of markup

dataset .... \n
where the "...." is the data i am interested in. so i basically want to retrieve the whole line, then do some processing. so, my question is is there a way to create a regular expresion that matches 'dataset....\n' ? where the .... can be any string of characters? thanks for any thoughts.
Old 07-11-2005, 08:03 PM   #2
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Debian Unstable
Posts: 107

Rep: Reputation: 15
That should work


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular expression question gauge73 Linux - General 5 10-28-2005 12:33 PM
Regular expression question gauge73 Linux - General 2 10-28-2005 10:32 AM
Regular expression question. groentebroer Programming 2 11-29-2004 10:15 PM
Regular expression question - John Sloan Linux - Software 1 09-08-2004 01:33 PM
regular expression question Gantrep Linux - Software 2 04-20-2003 05:24 PM

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration