Added multiline regexp support