Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Regular expressions

by BrowserUk (Patriarch)
on Oct 30, 2002 at 12:45 UTC ( [id://209042]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $str ='<html>/something/more words<br/></html>';
    my @bits = $str =~ m!(<html>)/([^/]+)/([^/]+)<br/>(</html>)!;
    print $_,$/ for @bits;
    
  2. or download this
    <html>
    something
    more words
    </html>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://209042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2025-03-16 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (54 votes). Check out past polls.