0

Does PureScript support verbatim string literals? Something like @"regex \s no escapes" in C#.

Alternatively is there support for regex literals as in JavaScript?

bklaric
  • 447
  • 6
  • 15

1 Answers1

2

You can use triple-quote strings.

There are no regex literals AFAIK, but triple-quote strings might help there too. Example from docs:

regex """.+@.+\..+""" noFlags
stholzm
  • 3,395
  • 19
  • 31