in reply to Re: Regex not working
in thread Regex not working

Did you intend to match on the single quotes?
The single quotes are not part of the OP's regex. The OP uses them to store (.*?)\:(.*?) in the scalar $regex1.