Just try the expression: $line =~ /.*]>(.*)<.*)/ On Mon, 22 Nov 2004 13:29:10 +0530 "Anish Kumar K." <[EMAIL PROTECTED]> wrote:
> Hi > > Suppose there is a line > my $line= "[<a href=\"Javascript:performAction(\'Open Window\');\" > class=\"[%um_class1%]\" [%um_master=createUserCourse%]>Create User</a>]"; > > I wanted to get the text "Create User from this line..How will I use regular > expresion to extract it... > > the condition is > > [<a ......%]>TEXT NAME</a>] > > I want only the text name from the pattern..I used $2 and all but no hope... > > > Anish > > > > > -- Whatever you do will be insignificant,but the important is you do it! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>