Hi, I'm kinda stuck. I would really appreciate it if someone here could tell me how to extract times from a relatively simple schedule file using perl's reg exps. I'm still pretty new to perl. The format of the line is as follows:
Last, First<big white space>8:00a-12:00n<more white space>Not Av<white space>Req Off<white space>Off
There are seven days worth of scheduled work times. I believe I can extract the names pretty easily myself (low priority), but I cannot seem to get it to extract the times correctly. Here's where I'm at:
if ($whatever =~ /(..:...-..:...)|(Not\ Av)|(Off)|(ReqOff)/) {
$d1 = $1; $d2 = $2... and so forth;
}
Can anyone help me? Thanks a lot!
Last, First<big white space>8:00a-12:00n<more white space>Not Av<white space>Req Off<white space>Off
There are seven days worth of scheduled work times. I believe I can extract the names pretty easily myself (low priority), but I cannot seem to get it to extract the times correctly. Here's where I'm at:
if ($whatever =~ /(..:...-..:...)|(Not\ Av)|(Off)|(ReqOff)/) {
$d1 = $1; $d2 = $2... and so forth;
}
Can anyone help me? Thanks a lot!