Haskell Text.Regex.subRegex using TDFA implementation?

Is there a way to use the TDFA implementation for Regex with functions in Text.Regex like subRegex for example? The documentation states that Text.Regex should only use the POSIX implementation.

+4
source share
2 answers

Unfortunately, I think you will have to write your own subRegex using matching functions and substrings. Text.Regex is part of regex-compat-0.92, which only works with posix source code.

+3
source

The regex-compat-tdfa package is available in Hackage , which provides an implementation of Text.Regex using TDFA.

+1
source

All Articles