Regular Expression on Yesod type Text

家住魔仙堡 提交于 2020-01-25 00:59:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!