Multiline Matching in Haskell Posix

后端 未结 3 1969
深忆病人
深忆病人 2021-01-06 07:09

I can\'t seem to find decent documentation on haskell\'s POSIX implementation. Specifically the module Text.Regex.Posix.

Can anyone point me in the rig

3条回答
  •  北海茫月
    2021-01-06 08:11

    I solved in this case by matching

    ((.*)|\n*)*
    

    Although this may not always work depending on your expression. The above solution is probably the best way to go if you're able to.

提交回复
热议问题