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.
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.
The regex-compat-tdfa package is available in Hackage , which provides an implementation of Text.Regex using TDFA.
Text.Regex