Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

small regex issue

by sg1234
on Oct 09, 2013 at 15:01 UTC ( #1057562=perlquestion: print w/replies, xml ) Need Help??
sg1234 has asked for the wisdom of the Perl Monks concerning the following question:

Hi there I copied some hotmail login script from around here but I'm having problems with these lines:
$html =~ /<form TARGET="_top" name="hotmail_com" action="([^"]*)"/;
s/<input type=hidden name="([^"]*)" value="([^"]*)">//

Replies are listed 'Best First'.
Re: small regex issue
by RichardK (Parson) on Oct 09, 2013 at 15:11 UTC
Re: small regex issue
by keszler (Priest) on Oct 09, 2013 at 15:12 UTC
    It would help if you explained what problems you're having.

    If you're not understanding what =~ and s/// do, or what the parentheses are for, read perlretut.

    If the script is stopping with an error message, show us the script and the (exact) message.

    If none of the above helped, try How do I post a question effectively?.

Re: small regex issue
by NetWallah (Abbot) on Oct 09, 2013 at 15:13 UTC
    You did not say what problem you are having,though this may help:
    my ($action)= $html =~ /<form TARGET="_top" name="hotmail_com" action= +"([^"]+)"/;

                 My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1057562]
[Discipulus]: choroba if let your company to hire Tanktalus and marioroy ... what a big fishing!
[Discipulus]: i choice prague!!
[choroba]: 1200 years is enough :-)
[marioroy]: Lady_Aleena my $ans = qx! find . -name "*.pl" -exec ls -l {} \\; !;
[Tanktalus]: My basic problem right now is that if I were willing to move, I could be back in Toronto with a pay raise. We have a number of reasons for not wanting to do that.
[marioroy]: I had to backslash the backslash inside qx.
[Tanktalus]: marioroy++ # nice catch
[Lady_Aleena]: marioroy, that makes kinda makes sense.
[Discipulus]: yes i can survive also in younger town.. but when i passed i saw many strange letters..
[Lady_Aleena]: marioroy, sorry, I am not making sense right now.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-04-23 20:14 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.