more complicated regex to support adjacent headings for WEB-9718 +review WEBCR
Merge pull request #34 from splunk/dev-WEB-9718

more complicated regex to support adjacent headings for WEB-9718