Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Grabbing numbers from a URL

by kevbot (Vicar)
on Jul 09, 2017 at 06:45 UTC ( [id://1194580]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $url = q|$itemID|;
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    my $num = $1;
    print "    NUM: $1\n";
    exit;
    
  3. or download this
    #!/usr/bin/env perl
    
    ...
    my $num = $1;
    print "    NUM: $1\n";
    exit;
    
  4. or download this
    perl -MYAPE::Regex::Explain -E 'say YAPE::Regex::Explain->new("(\d{4})
    ++\.htm")->explain();'
    
  5. or download this
    The regular expression:
    
    ...
    ----------------------------------------------------------------------
    )                        end of grouping
    ----------------------------------------------------------------------
    
  6. or download this
    perl -MYAPE::Regex::Explain -E 'say YAPE::Regex::Explain->new("(\d{4,5
    +})\.htm")->explain();'
    
  7. or download this
    The regular expression:
    
    ...
    ----------------------------------------------------------------------
    )                        end of grouping
    ----------------------------------------------------------------------
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found