Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Perl RegEx (url explode)

by U_nix$_@ (Initiate)
on Nov 01, 2012 at 23:33 UTC ( #1001886=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Perl RegEx (url explode)
in thread Perl RegEx (url explode)

Ok. The spirit reached me. This fixed it:

((.*)(?:\.)([a-zA-Z]*))(?::(\d{0,10}))?

Edit:
@Perlbotics,
Your "match if not" version is the cleaner one. Merci.


Comment on Re^3: Perl RegEx (url explode)
Download Code
Reaped: Re^4: Perl RegEx (url explode)
by NodeReaper (Curate) on Nov 02, 2012 at 00:11 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-09-17 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls