regex - How to escape parenthesis in Perl Regular Expressions? -
if have string such as:
journal yeast 10 (11), 1503-1509 (1994)
how 2 numbers in parenthesis( 11 , 1994) ? 1 way attempted using:
/\s+journal\s+.*\((\d+).*\((\d+))/
but doesn't work. 2 questions:
how escape parenthesis can use match them in re ?
how above 2 numbers ?
i doing in perl. !
try this
\((\d+)\)
explanation:
\
: escapes special character sample
( … )
: capturing group sample
+
: 1 or more sample
Comments
Post a Comment