Corrected bug with attribute selection. Added title attribute to display full match pattern.