U
Une bévue
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("<BWFXML>")
rgxstop=Regexp.new("</BWFXML>")
the comparaison i do :
rgxstart === l.chomp
l being :
File.open(<the sound file>).each { |l| ...}
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("<BWFXML>")
rgxstop=Regexp.new("</BWFXML>")
the comparaison i do :
rgxstart === l.chomp
l being :
File.open(<the sound file>).each { |l| ...}