chrisdone 2017-01-31 07:54:44
monochrom: http://ircbrowse.net/day/haskell/today/?id=24080763×tamp=1485820912#t1485820912
chrisdone 2017-01-31 07:54:47
chrisdone 2017-01-31 07:54:54
monochrom: you might be able to find it easier with the little preview on the browse page now: http://lpaste.net/browse?author=monochrom
shiona 2017-01-31 08:01:26
which regex would I want to install? My usecase is to search for a line in a file that matches a programmatically generated regex string
sm 2017-01-31 08:07:51
shiona: any of them will do that. You might want to avoid ones that require C code. I like regex-tdfa
shiona 2017-01-31 08:08:30
Right. I found a page on google that promised to help with "Should you use Text.Regex, Text.Regex.Base, Text.Regex.PCRE or Text.Regex.TDFA? And how do you use them?"
shiona 2017-01-31 08:08:41
So I went with its help
sm 2017-01-31 08:09:57
fair enough. That one requires C, so may be harder to build on windows
Cale 2017-01-31 08:17:12
shiona: When you say "programmatically generated" is it your program which is generating the regex string?
Cale 2017-01-31 08:17:54
shiona: Because if so, you might as well use a parser library such as attoparsec, which will generally be much more pleasant, and skip the regex altogether.
shiona 2017-01-31 08:19:49
well, it's a hacky substitution cipher solver (that doesn't remove spaces). I just assume a few words and other letters leave as dots
shiona 2017-01-31 08:20:09
and I have a pretty good idea what material the stuff is from, so I can just look through that