I always get an empty string in each scalar variable.
No, you get undef in each of them.
In reply to Re: Regular expression not working by ikegami in thread Regular expression not working by oakb