Regex for capturing number in brackets
- by neversaint
I have a lines like this
NF419andZNF773 (e=10^-92,).
ZNF571 (e=2 10^-14,)
What's the regex for extracting the results above so that it gives
NF419andZNF773 - 10^-92
ZNF571 - 2 10^-14
I tried this but fail.
$line =~ /(\w+)\s\(e=\s(.*),\)/;
print "$1 - $2\n";