if [[ "$1" =~ s.* ]]
then
  echo small
elif [[ "$1" =~ l.* ]]
then
  echo large
else
  echo small or large
fi

See: Bash V3.2 Reference Manual