sorry, from $line, I need DATE in $1 and _RE_IRD_Soc in $2
$line2, $line3 doesn't have anything in $2. my idea is to have one regex which satisfy both conditions.
It may help to talk it through in words first. The pattern you're looking at is:
Two dollar signs (metacharacters, will need escaping)
An open parenthesis (also needs escaping)
Some text up to a closed parenthesis (capture this in $1)
A closed parenthesis (escaped)
Anything else that exists beyond that (captured in $2)
Now just put those elements together in a regex:
if( $line =~ m[ \$\$ # two dollar signs
\( # open paren
([^)]+) # capture until closed paren
\) # close paren
(.*) # capture the rest, if any
]x ){
# do stuff with $1 and $2
}