Maybe I can explain better showing you the real problem. I have an HTML form and I'm parsing it looking for <FORM> tags
When I find one I need to catch the "ACTION" value. i.e. <form action=http://www.somedomain.com method=post> I need to catch "http://www.somedomain.com". Obiouvsly the "method" can also not to be absent, so I need a generiche pattern matching. Francesco --- Rob Dixon <[EMAIL PROTECTED]> wrote: > > Hi Francesco . > > It depends how you want to define where it is. To get the > last word on the line (with possible trailing spaces): > > my $stuff; > > ($stuff) = ($string =~ /(\w+)\s*$/); > > \w is a 'word' character: A-Z, a-z, 0-9, and underscore. > \s is a whitespace character. > > Is this what you want? > > HTH, > > Rob > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]