word at least three times on that line, no matter what the
word is. You may need to tell it whether a match should be greedy and many
other considerations such as ignoring case.
Have fun.
Avi
-Original Message-----
From: Tutor On Behalf Of
Asad
Sent: Monday, November 19, 2018
On 11/19/18 8:15 PM, Asad wrote:
> Hi Avi Gross /All,
>
> Thanks for the reply. Yes you are correct , I would like to to
> open a file and process a line at a time from the file and want to select
> just lines that meet my criteria and print them while ignoring the rest. i
> have crea
erator carefully inside one regular
expression. You have not stated any need to tell what was matched or where
it is the line so that would be yet another story.
-Original Message-
From: Tutor On Behalf Of
Asad
Sent: Sunday, November 18, 2018 10:19 AM
To: tutor@python.org
Subject: [Tutor] ho
he
list of things to search for would be all the string in RE format. You could
search multiple times or use the OR operator carefully inside one regular
expression. You have not stated any need to tell what was matched or where
it is the line so that would be yet another story.
-Original Mess
On Nov 18, 2018 1:19 PM, "Bob Gailer" wrote:
>
> On Nov 18, 2018 12:14 PM, "Asad" wrote:
> >
> > Hi All ,
> >
> >I have a set of words and strings :
> >
> > like :
> >
> > p = [A ,"B is good" ,123456 , "C "]
> >
> > I have a file in which I need to print only the lines which matches the
>
On Nov 18, 2018 12:14 PM, "Asad" wrote:
>
> Hi All ,
>
>I have a set of words and strings :
>
> like :
>
> p = [A ,"B is good" ,123456 , "C "]
>
> I have a file in which I need to print only the lines which matches the
> pattern in p
>
> thanks,
you are welcome, but I'm not sure what you'
Hi All ,
I have a set of words and strings :
like :
p = [A ,"B is good" ,123456 , "C "]
I have a file in which I need to print only the lines which matches the
pattern in p
thanks,
--
Asad Hasan
+91 9582111698
___
Tutor maillist - Tutor@py