Tugger the SLUGger!SLUG Mailing List Archives

Re: [chat] prob with regex


On Fri, 2003-06-27 at 13:03, Michael Lake wrote:
> Hi all,
> 
> I am having some minor prob with a regex - I think my first .* is 
> gobbling up the remainder of the expression.
> 
> I have a text file like this:
> PAVEY AUASF020388
> PAVEY,A AUASF02389
> PAVEY,A AUASF02390       <-- just a comma then A
> PAVEY,A. AUASF02391      <-- this one has a full stop
> 

I can highly recommend a package called txt2regex 
(http://txt2regex.sourceforge.net/)