in reply to Long regexp un multiple lines
or with /x/^(?:[\da-f]{2}:){5}[/da-f]{2}$/
or even shorter if you use qr./^(?: [/da-f]{2}: ){5} [/da-f]{2} $ /x
(and later on)$x = qr/[\da-f]{2}/;
/^(?:$x:){5}$x$/;
-enlil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Long regexp un multiple lines
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 |