From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=)
Date: 2006-11-25T16:40:05+09:00
Subject: regexp working with mixed lines endings
Hey all,
i've an audio file (wav) containing some xml metadatas at start or
ending of the ausio datas.
my regexp works fine with unix lines endings.
however some recorder puts mixed line ending where my regexp isn't
working.
is their a special option able to work with all kind of endings ?
my regexps :
rgxstart=Regexp.new("")
rgxstop=Regexp.new("")
the comparaison i do :
rgxstart === l.chomp
l being :
File.open().each { |l| ...}
--
une b�vue