I'm new to Perl and I'm trying to figure out the following two things that is in my homework. Thanks a lot!
What pattern do the following two statements match?
1--> /(\w)\1+/
I know what (\w) mathches, and i know that the \1+ has to do with back reference to whatever I have matched with the (\w) before, but what does the "+" at the end means?
2--> /a*a+/
Does this match an item that is preceded by a number produced by a*a?
Thanks!
What pattern do the following two statements match?
1--> /(\w)\1+/
I know what (\w) mathches, and i know that the \1+ has to do with back reference to whatever I have matched with the (\w) before, but what does the "+" at the end means?
2--> /a*a+/
Does this match an item that is preceded by a number produced by a*a?
Thanks!