Do you know where your variables are? | |
PerlMonks |
Long regexp un multiple linesby Lorand (Beadle) |
on Apr 22, 2004 at 17:20 UTC ( [id://347419]=perlquestion: print w/replies, xml ) | Need Help?? |
Lorand has asked for the wisdom of the Perl Monks concerning the following question:
Hi everyone,
is there a way to wrap a regular expression longer than 80 character across several lines, with functionality unchanged? I have the following: /^[\da-f][\da-f]:[\da-f][\da-f]:[\da-f][\da-f]:[\da-f][\da-f]:[\da-f][\da-f]:[\da-f][\da-f]$/ for MAC addresses. Or maybe a better way to write it?
Back to
Seekers of Perl Wisdom
|
|