Lorand has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Long regexp un multiple lines
by davido (Cardinal) on Apr 22, 2004 at 17:41 UTC | |
|
Re: Long regexp un multiple lines
by Enlil (Parson) on Apr 22, 2004 at 17:49 UTC | |
by japhy (Canon) on Apr 22, 2004 at 18:19 UTC | |
by davido (Cardinal) on Apr 22, 2004 at 20:05 UTC | |
by japhy (Canon) on Apr 22, 2004 at 20:46 UTC | |
|
Re: Long regexp un multiple lines
by Fletch (Bishop) on Apr 22, 2004 at 17:29 UTC | |
|
Re: Long regexp un multiple lines
by ybiC (Prior) on Apr 22, 2004 at 18:29 UTC | |
by Lorand (Beadle) on Apr 23, 2004 at 16:29 UTC | |
|
Re: Long regexp un multiple lines
by asdfgroup (Beadle) on Apr 23, 2004 at 00:20 UTC | |
|
Re: Long regexp un multiple lines
by tkil (Monk) on Apr 24, 2004 at 00:08 UTC |