Ryan Dillinger wrote:
> Hello All,

Hello,

> I was studying some pattern matching. And I ran into this piece of code.
> Now I believe I understand it up until the the last part \1.
> Can someone explain it for me please?
> Match lowercase a through z, uppercase A through lc z

That must be a mistake because the range A-z includes A-Z, '[', '\', ']', '^',
'_', '`' and a-z (at least in ASCII.)  It probably should be [a-zA-Z]


> no more than three times, with white space zero or one times
> then I'm stumped, what's the 1 for?
> 
> /([a-zA-z]{3})\s*\1/


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to