As I understand this it would be without verifying in the books noted below:

/^r             any line where the first character is a lowercase "r"
(\d+)           followed by any number of numeric characters, stored in
internal var \1
c               followed by a lowercase "c"
(\d+)$/ followed by any number of numeric characters to the end of the line,
stored in internal var \2

Mastering Regular Expressions
Programming Perl
Learning Perl



-----Original Message-----
From: Jerry Preston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 6:14 AM
To: begginners
Subject: need help to understand a regex


All,

I need to understand this regex in detail:

$key=~/^r(\d+)c(\d+)$/

Thanks for your help and time,

Jerry


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to