Regular expression for a single character corresponding to a single character


I can't get the regular expression for matching with exactly single character.

foreach($strings as $string)
echo "match";
echo "no";}

This code match with 1st 2nd and 4th string of array. But i need it for just match with 2nd item(any character).

Try this expression


^ indicates the beginning of the string and $ the end of it.