bklaric
bklaric

Reputation: 477

Verbatim strings in PureScript

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

Answers (1)

stholzm
stholzm

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

Related Questions