in reply to map function use

Any suggestions?
  1. Use $string in your RE instead of $phrases
  2. Explain what you mean by "it does not work"
  3. Explain what your "actual problem" is