Re: [BangPypers] A trivial doubt in negative lookbehind regular expression pattern

2011-04-05 Thread Senthil Kumaran
On Tue, Apr 05, 2011 at 06:21:03PM +0530, Neha Jain wrote: > > > but the problem with this is that the line where I am searching for may be > like.. #define ABC_PG... so may be something for the start of the word type > matching may help.. \b?? i am not sure.. The reason that second pattern is in

Re: [BangPypers] A trivial doubt in negative lookbehind regular expression pattern

2011-04-05 Thread Neha Jain
thanks senthil for the prompt reply.. On Tue, Apr 5, 2011 at 5:38 PM, Senthil Kumaran wrote: > On Tue, Apr 05, 2011 at 05:04:38PM +0530, Neha Jain wrote: > > I am trying to avoid matching of the terms that start with a word ABC_ > > The general pattern is that the term has only caps alphabets an

Re: [BangPypers] A trivial doubt in negative lookbehind regular expression pattern

2011-04-05 Thread Senthil Kumaran
On Tue, Apr 05, 2011 at 05:04:38PM +0530, Neha Jain wrote: > I am trying to avoid matching of the terms that start with a word ABC_ > The general pattern is that the term has only caps alphabets and _, I have > to ignore from these terms, ones that begin in ABC_ > The regular expression I have writ

[BangPypers] A trivial doubt in negative lookbehind regular expression pattern

2011-04-05 Thread Neha Jain
Hi all, I am trying to avoid matching of the terms that start with a word ABC_ The general pattern is that the term has only caps alphabets and _, I have to ignore from these terms, ones that begin in ABC_ The regular expression I have written is: pattern = re.compile( ' ((?http://mail.python.org