Preg match - apostrophe

Been looking for the way to include the apostrophe here:

‘/[1]{40,350}$/’

Escaping with backslash does not seem to do it.

version 4


  1. -A-Za-z0-9\s.," ↩︎

Escape the dot.

that statement works as is, just need to add apostrophe