----- Original Message -----
From: "James Campbell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 5:31 PM
Subject: RE:regex tester
> Hi
>
> >Is anybody use any free Regexp tester?
> >Like in the OptiPerl - but it's non-free... :(
>
> Don't know how complicated OptiPerl is but if you just want to see what
> your regex is matching:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> #!/usr/bin/perl
> while (<>) {
>
> chomp;
> if (/YOUR_PATTERN_GOES_HERE/) {
> print "Matched: |$`<$&>$'|\n";
> }else{
> print "No match.\n";
> }
> }
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Will do it. Feed it a text file by typing
>
> -=-=-=-=-=-=-=-=-=-=-=-=-
> #./this_script.pl < test_file
> -=-=-=-=-=-=-=-=-=-=-=-=-
> at the command line.
>
> Good luck
> James
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> James Campbell
> Research Bioinformatician
>
> Proteome Sciences
> Institute of Psychiatry
> South Wing Lab
> PO BOX PO45
> 16 De Crespigny Park
> London SE5 8AF
>
> Tel: +44-(0)207-848-5111
> Fax: +44-(0)207-848-5114
> Email: [EMAIL PROTECTED]
> Web 1: www.proteome.co.uk (Corporate site)
> Web 2: www.proteinworks.com (Satellite site - Proteomics facility)
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]