Ciao a tutti

Questa regex

reg = /^([^ ]+) +([^ ]+) +[^ ]+ +([^ ]+) +([[][^]]+[]]) +"([^"]*)" +([^ ]+) +([^ ]+) +("[^"]*") +("[^"]*") +("[^"]*") +"([^"]*)" +"([^"]*)" +"([^"]*)" +"([^"]*)" +"(.+)" +"([^"]*)" +"([^"]*)" +"([^"]*)" +"([^"]*)" +(.+)$/

continua a generarmi questo errore

c:\ruby\bin\ruby.exe: warning: character class has ']' without escape
c:\ruby\bin\ruby.exe: warning: character class has ']' without escape
c:\ruby\bin\ruby.exe: warning: character class has ']' without escape
00reverse_fastest_nocustom.rb:6: premature end of char-class: /^([^ ]+) +([^ ]+) +[^ ]+ +([^ ]+) +([[][^]]+[]]) +"([^"]*
)" +([^ ]+) +([^ ]+) +("[^"]*") +("[^"]*") +("[^"]*") +"([^"]*)" +"([^"]*)" +"([^"]*)" +"([^"]*)" +"(.+)" +"([^"]*)" +"(
[^"]*)" +"([^"]*)" +"([^"]*)" +(.+)$/


Qualcuno ha qualche idea da suggerirmi?

Grazie mille