- To: slug-chat@xxxxxxxxxxx
- Subject: Re: [chat] prob with regex
- From: Michael Lake <mikel@xxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2003 13:32:00 +1000
- User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020622 Debian/1.0.0-0.woody.1
Tony Green suggested in response to...
> On Fri, 2003-06-27 at 13:03, Michael Lake wrote:
>>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/)
Looks good. Its already apt-get installed :-)
"Description: A Regular Expression "wizard", all written with bash2
builtins ^txt2regex$ is a Regular Expression "wizard", all written with
bash2 builtins, that converts human sentences to RegExs. With a simple
interface, you just answer to questions and build your own RegEx for a
large variety of programs, like awk, emacs, grep, perl, php, procmail,
python, sed and vim. There are more than 20 supported programs."
Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
UTS CRICOS Provider Code: 00099F
DISCLAIMER
========================================================================
This email message and any accompanying attachments may contain
confidential information. If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.
If you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly,
and with authority, states them to be the views the University of
Technology Sydney. Before opening any attachments, please check them for
viruses and defects.
========================================================================