LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   regular expression question (https://www.linuxquestions.org/questions/linux-software-2/regular-expression-question-342261/)

zero79 07-11-2005 06:14 PM

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

Code:

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.

fsateler 07-11-2005 07:03 PM

Code:

^dataset.*$
That should work


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