LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Dan Kortschak <dan.kortschak@adelaide.edu.au>
  To  : <linuxsa@linuxsa.org.au>
  Date: Tue, 27 Feb 2001 14:48:52 +1030 (CST)

sloppy grep in perl?

Hi Everyone, is there someway I can get a grep-like commannd in perl that
will match with a relaxed attitude towards mismatches and/or
insertions/deletions where I specify.
So, say I have a subpattern that may include errors, I can let a match
still happen in for the whole.

eg (making up a syntax as I go along). /(fao){1,0,0}/ would match foo as
{1,0,0} specifies allow one mismatch and /(fooo){0,1,0}/ would also match
foo as {0,1,0) specifies allow one insertion, etc.

thanks
Dan


-- 
_____________________________________________________________   .`.`o     
                                                         o| ,\__ `./`r
  Dan Kortschak                                          <\/    \_O> O    
  Genetics (DMB)          phone :+61 8 8303 4863          "|`...'.\
  Adelaide University     fax   :+61 8 8303 4399           `      :\ 
  Australia 5005          mailto:dan.kortschak@adelaide.edu.au    : \

  "Nullius addictus iurare in verba magistri." -- Horace

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page