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.
In reply to Re^2: Regex not working
by toolic
in thread Regex not working
by Perllace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |