>I'm trying to find a way to match anything between two brackets [....]  The stuff in
>between will have alpha, numeric, and symbols (including /  -  @ and spaces)

>For instance

>[akens@egh-org blah/blah/blah]

>I need to match that entire string, including the []'s

>Here's the ugly thing I've gotten so far to do it.  But I know there's a way to 
>simplify
>it and just match anything between the []'s.  Thanks for any advice.

>\[[A-Za-z'-@]* \S+[A-Za-z'/]\]


$line = 'dfdf[akens@egh-org blah/blah/blah]dsfdsf';
$line =~ /(\[.*?\])/;

print $1, "\n";


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

Reply via email to