On 10 May 2004, at 17:42, <[EMAIL PROTECTED]> wrote:
Well need your help in framing a RegExp....
I've to parse for the <form> tag in a HTML/ASP file and then when i get that i need
to get only yhe action filepath in to an array ! How do i do it ?
Parse::HTML would suggest itself rather then a regex.
For Example
<form name="register" id="something" action="register/doregister.asp">
i need only the "register/doregister.asp" in an array !
my $html = qq(<form name="register" id="something" action="register/doregister.asp">);
(my $action) = ( $html =~ /action=\"([^\"]*)\"/ );
Replace "my $action" when whatever array location you want to load it into.
-- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/>
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>