use multiline mode in Regexp
Merge pull request #40 from simplysoft/multiline

use multiline mode in Regexp