tags:

views:

87

answers:

1

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 implementation only.

+1  A: 

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.

Don Stewart