in reply to Re: Re: In search of regex advice
in thread In search of regex advice

can't seem to get the regex to match across a bunch of lines
I haven't fully examined your code, but the phrase above makes me think you should check out the /s regex modifier, which makes the wildcard '.' match a newline. Since you have '.*' in several of your regexes, its probably worth seeing if the /s modifier will make them behave the way you want them to.

-Blake