问题
Currently, I am changing my Text to String then using Text.Regex.Posix to do my matching. Is there a idiomatic and efficient way to do regular expression in Yesod?
回答1:
Have you taken a look at the regex-tdfa-text package? It provides backend support for using the regex-base
library with Text
strings.
来源:https://stackoverflow.com/questions/31160216/regular-expression-on-yesod-type-text