| Title |
Test
Find
Pattern Title
|
| Expression |
^(eth[0-9]$)|(^eth[0-9]:[1-9]$) |
| Description |
regex to validate unix device names (linux). useful for scripts using ifconfig or stuff |
| Matches |
eth0 | eth0:4 | eth4:9 |
| Non-Matches |
eth0: | eth0:0 | eth0:1d |
| Author |
Rating:
Joey Brunner
|
| Source |
|
| Your Rating |
|
Title: why use | ?
Name: Mike
Date: 2/4/2005 10:18:09 AM
Comment:
You can make it so:
^eth[0-9](:[0-9])?$