the regular expression text writes between slashes, like /^read/, undefined for any other text or one that does not compile
text
/^read/
undefined
Optional
the regular expression
textwrites between slashes, like/^read/,undefinedfor any other text or one that does not compile