If I have a string such as:
JOURNAL Yeast 10 (11), 1503-1509 (1994)
How do I get the two numbers in the parenthesis( 11 and 1994) ? One way I attempted was using:
/\s+JOURNAL\s+.*\((\d+).*\((\d+))/
but this doesn't work. So my two questions:
How to escape the parenthesis so I can use match them in the RE ?
How to get the above two numbers ?
I am doing this in Perl. Thanks for any help !
Try this
\((\d+)\)
Explanation:
\
: Escapes a special character sample
( … )
: Capturing group sample
+
: One or more sample