开发者

Haskell's Text.Regex.subRegex using TDFA implementation?

开发者 https://www.devze.com 2022-12-17 02:21 出处:网络
Is there a way to use the TDFA implementation of Regex with the functions in Text.Regex such as subRegex? The documentation says that Text.Regex must use the POSIX implemen开发者_运维技巧tation only.S

Is there a way to use the TDFA implementation of Regex with the functions in Text.Regex such as subRegex? The documentation says that Text.Regex must use the POSIX implemen开发者_运维技巧tation only.


Sadly, I think you'll have to write your own subRegex using the match and substring splicing functions. Text.Regex is part of regex-compat-0.92, which only works with the posix backend.


It is available on Hackage the package regex-compat-tdfa that provides a Text.Regex implementation using TDFA.

0

精彩评论

暂无评论...
验证码 换一张
取 消