Re: matching help needed

2003-10-20 Thread Wiggins d Anconia.org
> Steve Massey wrote: > > > > using the following code.. I am looking to match any text that has a date in > > it ie 8-Nov, nut my code also matches 8-11b, which is not what I want > > > > help appreciated > > > > Steve > > > > > > > > #! /usr/bin/perl -w > > > > $test = "8-11b1"; > > ##$

Re: matching help needed

2003-10-20 Thread Rob Dixon
Steve Massey wrote: > > using the following code.. I am looking to match any text that has a date in > it ie 8-Nov, nut my code also matches 8-11b, which is not what I want > > help appreciated > > Steve > > > > #! /usr/bin/perl -w > > $test = "8-11b1"; > ##$test = "8-Nov1"; > > if ( $te

RE: matching help needed

2003-10-20 Thread Mark Anderson
> using the following code.. I am looking to match any text that has a date in > it ie 8-Nov, nut my code also matches 8-11b, which is not what I want > > #! /usr/bin/perl -w > > $test = "8-11b1"; > ##$test = "8-Nov1"; > > if ( $test =~ /(\d{1,2})\-(\w{3})([\d\w]*)/) { > $day = $1;