Gossamer Forum
Home : General : Perl Programming :

Regex Brackets

Quote Reply
Regex Brackets
I can't seem to find the answer to this...I know it's buried in my brain somewhere but I can't dind it...

If I do:

m/(foo(bar))/

$1 should equal foo and $2 equal bar right?

It doesn't seem to want to work for me.
Quote Reply
Re: [PaulW] Regex Brackets In reply to
Well, no. It would be $1 = "foobar", $2 = "bar"


Adrian
Quote Reply
Re: [brewt] Regex Brackets In reply to
damn.

thanks. Laugh