use ^ and $ to match the two ends: /^ACB$/
In reply to Re: Looking for exact match in an array by pg in thread Looking for exact match in an array by juo