<?php
$text = '
*Heading 1* Text **SubHeading 1A** More Text **SubHeading 1B** Text**Subheading 1C**
*Heading 2* Text **SubHeading 2A** More Text **SubHeading 2B** Even more text**Subheading 2C**
';
}, $matches[1]);
PD9waHAKJHRleHQgPSAnCiAgICAgICAgKkhlYWRpbmcgMSogVGV4dCAqKlN1YkhlYWRpbmcgMUEqKiBNb3JlIFRleHQgKipTdWJIZWFkaW5nIDFCKiogVGV4dCoqU3ViaGVhZGluZyAxQyoqCiAgICAgICAgKkhlYWRpbmcgMiogVGV4dCAqKlN1YkhlYWRpbmcgMkEqKiBNb3JlIFRleHQgKipTdWJIZWFkaW5nIDJCKiogRXZlbiBtb3JlIHRleHQqKlN1YmhlYWRpbmcgMkMqKgonOwokcmVzdWx0ID0gYXJyYXkoKTsKaWYgKHByZWdfbWF0Y2hfYWxsKCcvKFsqXStbXipdK1sqXSspLycsICR0ZXh0LCAkbWF0Y2hlcykpCgkJJHJlc3VsdCA9IGFycmF5X21hcChmdW5jdGlvbiAoJHYpIHsKCQkJCXJldHVybiBzdHJfcmVwbGFjZSgnKicsICcgICcsIHJ0cmltKCR2LCAnKicpKTsKCQl9LCAkbWF0Y2hlc1sxXSk7CgpwcmludF9yKCRyZXN1bHQpOwo=