I am having difficulty with regular expressions. I cannot seem to make the following statements work as I desire. So as a result, I introduced a few extra scalars (not listed) which I do not want and wish to be rid of. The pertinent code bits are below.
If anyone has any idea how to match these expressions, I would be very appreciateive. Thanks for your time. Joe($columns[0] =~ /(["\/home"]*)/) ($columns[0] =~ /(["\/mail"]*)/) ($columns[0] =~ "cat: cannot open /home/$username/$file")
In reply to Fiddling around with reg-ex by JoeJaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |