Fixed regexp in parseOption