A guy I know wrote this for me. I know what it does, I just don't understand how it works. Can someone help explain it to me? Or point me in a direction to figure it out?
if ($name =~/.*(NAS\d{1,2})$/){
$router = $1;
}
What does the /.* and the \d{1,2})$/) do? And how does it work?
Thank you,
mL
if ($name =~/.*(NAS\d{1,2})$/){
$router = $1;
}
What does the /.* and the \d{1,2})$/) do? And how does it work?
Thank you,
mL