Regular Expression

Hi, I am currently learning NLP (Natural Language Processing) and I come by this question. can anyone help me to figure this question? Thank you.

ELIZA uses a cascade of regular expression substitutions.

User1: Men are all alike.
ELIZA1: IN WHAT WAY
User2: They’re always bugging us about something or other. ELIZA2: CAN YOU THINK OF A SPECIFIC EXAMPLE
User3: Well, my boyfriend made me come here.
ELIZA3: YOUR BOYFRIEND MADE YOU COME HERE.
User4: He says I’m quiet much of the time.
ELIZA4: HE SAYS YOU ARE QUIET MUCH OF THE TIME.

List the substitution patterns that can produce the above dialog.

This sounds like an exam question and if that’s the case, I’m sorry but we cannot help you.

Its not an exam question, if its an exam question I would need the answer quickly. However, I can confirm that this is a tutorial question

Do you have a link to the lesson? What code have you written so far?

See: