- To: slug-chat@xxxxxxxxxxx
- Subject: Re: [chat] prob with regex
- From: Tony Green <tgreen@xxxxxxxxxxx>
- Date: 27 Jun 2003 13:15:20 +1000
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/)