in reply to Re^2: regular expression ignores two lines
in thread regular expression ignores two lines

If I understand it correctly then the problem you have is that 'LINE' and 'TTL' are not passed through the if condition or in short lines 'The tag is LINE' and 'The tag is TTL' are not printed. If that is true than revisit your condition '/^\{(.*)\}$/' it says that the line should start with '{' and end with '}' which is not the case therefore the condition fails. To solve it try following instead of 'if'
while(/{(.*?)}/g) {
Here is the output you get.
The tag is SOURCETAG The tag is DATE The tag is EDITION The tag is HEADLINE The tag is SOURCE The tag is LINE The tag is TTL
Update: whoops my suggestion looks like a copy of Crackers2 :)
Regards,
Ashish