develooper Front page | perl.beginners | Postings from November 2004

Regular Expression

Thread Next
From:
Anish Kumar K.
Date:
November 21, 2004 23:56
Subject:
Regular Expression
Message ID:
010101c4d069$267398f0$9b02a8c0@anish
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





Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About