Improving regex, multiline compilation