> gg = re.compile [[ > Chunk <- ( <Word> <Space> )+ -> {} > Word <- { [a-d]+ } > Space <- { ( " " / "\n" )* } > ]] The escape sequence \n is not interpreted inside [[...]] strings. You should use the predefined pattern %nl instead. -- Roberto