Reputation: 477
Does PureScript support verbatim string literals? Something like @"regex \s no escapes"
in C#.
Alternatively is there support for regex literals as in JavaScript?
Upvotes: 0
Views: 138
Reputation: 3455
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
Upvotes: 2