i made a mistake it should be length($_)==3.
In reply to Re: regex issue by Anonymous Monk in thread regex issue by Anonymous Monk