[BangPypers] [Bangpypers] Regular Expressions workshop this weekend (20-07-2019)!

2019-07-15 Thread Abhiram R
For July's meetup, we'll be having a workshop on Regular Expressions[1] at Hiver[2] from 2PM - 5PM on the 20th of July. *Please note the change in timings from the usual. This is an afternoon session. * RSVPs are now open. *The agenda is as follows - * - Introduction to regular expressions - Int

Re: [BangPypers] Regular Expressions

2011-03-22 Thread Nitin Kumar
use this way r'(/|\\)cmd\.com$' Its raw string stuff which i guess you are missing out. Nitin K On Wed, Mar 16, 2011 at 11:27 PM, Santhosh Edukulla < santhosh.eduku...@gmail.com> wrote: > Hi All, > > I have a list of regular expressions under a file(EX: inp.txt). Then, I > have > another file

Re: [BangPypers] Regular Expressions

2011-03-16 Thread Gora Mohanty
On Wed, Mar 16, 2011 at 11:27 PM, Santhosh Edukulla wrote: > Hi All, > > I have a list of regular expressions under a file(EX: inp.txt). Then, I have > another file (EX: search.txt).The task is that i have to read the list of > regular expressions from the inp.txt and then search for the same in >

Re: [BangPypers] Regular Expressions

2011-03-16 Thread Senthil Kumaran
On Wed, Mar 16, 2011 at 11:27:24PM +0530, Santhosh Edukulla wrote: > a = '(/|\\)cmd\.com$' > 1. > When i read the regular expression above from the file to a variable *(EX: > a)*. as below > EX: > *a=open('inp.txt','r').readlines()[0]* > > Iam getting a different regular expresson as *'(/|)cm

Re: [BangPypers] Regular Expressions

2011-03-16 Thread Kenneth Gonsalves
On Wed, 2011-03-16 at 23:27 +0530, Santhosh Edukulla wrote: > 1. > When i read the regular expression above from the file to a variable > *(EX: > a)*. as below > EX: > *a=open('inp.txt','r').readlines()[0]* > > Iam getting a different regular expresson as *'(/|)cmd\.com$'* > > 2. Instead whe

[BangPypers] Regular Expressions

2011-03-16 Thread Santhosh Edukulla
Hi All, I have a list of regular expressions under a file(EX: inp.txt). Then, I have another file (EX: search.txt).The task is that i have to read the list of regular expressions from the inp.txt and then search for the same in "search.txt" and output the matched string. Iam using python *"re" *m