Tenho a seguinte função:

      if (str.match(/\d\d\d\d\d\.\d\d\d\d\d/)) {
     	var codigo_velho = str.match(/\d\d\d\d\d\.\d\d\d\d\d\/);
    	result = "1"; }

Como alterar esta função para que ela detecte quebra de linha no `match`? Por exemplo, tentei com `\n` mas não deu certo:

     if (str.match(/\d\d\d\d\d\.
                             \d\d\d\d\d/)) {
     	var codigo_velho = str.match(/\d\d\d\d\d\.
                                           \d\d\d\d\d\/);
    	result = "1"; }