Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Long regexp un multiple lines

by ybiC (Prior)
on Apr 22, 2004 at 18:29 UTC ( #347449=note: print w/ replies, xml ) Need Help??


in reply to Long regexp un multiple lines

While not directly addressing your explicit question...

If your underlying problem is validating MAC addresses, then Net::Address::Ethernet might be of some interest.   Particularly the is_address function.

  cheers,
  ybiC

  striving toward Perl Adept
  (it's pronounced "why-bick")

Update: I looked through Regexp::Common, but found nothing I recognized as parsing MAC address.   8^P


Comment on Re: Long regexp un multiple lines
Download Code
Re: Re: Long regexp un multiple lines
by Lorand (Beadle) on Apr 23, 2004 at 16:29 UTC
    Yes, when I searched on the net for the regexp, I've seen that module, but why use an extra module, if it is possible without and quite simply? If I needed to check more address types, maybe...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2015-07-06 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls