0
votes

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

Alternatively is there support for regex literals as in JavaScript?

1

1 Answers

2
votes

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