G
Gaspard Bucher
Hi there !
Is there a way to disable regexp warning ?
I want to do this:
begin
re = /#{str}/
rescue
# invalid regexp
return "<span class='parser_error'>invalid regexp #{str.inspect}</span>"
end
without having tons of messages printed on stderr. Any clue ?
Thanks,
Gaspard
Is there a way to disable regexp warning ?
I want to do this:
begin
re = /#{str}/
rescue
# invalid regexp
return "<span class='parser_error'>invalid regexp #{str.inspect}</span>"
end
without having tons of messages printed on stderr. Any clue ?
Thanks,
Gaspard