import re


def avg_word_length(text):
  """
  Averages the word length in `text`

  :param text: The text to analyze (str)
  :return: average_word_len (float)
  """
  words = re.sub(r'[\.\?!]', '', text).split()
  return sum(len(word) for word in words) / len(words)