Re: [Haskell-cafe] A weird bug of regex-pcre

2012-12-18 Thread Magicloud Magiclouds
I see. A known bug. Thank you all. On Tue, Dec 18, 2012 at 10:11 PM, Rico Moorman wrote: > regex = "]+>.*?"- >> > > And mind the sneaky single "-" ... it doe not belong there ;-) > > > -- 竹密岂妨流水过 山高哪阻野云飞 And for G+, please use magiclouds#gmail.com. __

Re: [Haskell-cafe] A weird bug of regex-pcre

2012-12-18 Thread Rico Moorman
> > regex = "]+>.*?"- > And mind the sneaky single "-" ... it doe not belong there ;-) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] A weird bug of regex-pcre

2012-12-18 Thread Rico Moorman
I had similar issues a while ago. It had to do with UTF-8 encoding as far as I can recall. I wanted to "wrap" a multiline string (code listings) within some pandoc generated HTML of a hakyll page with a container "div". The text to wrap would be determined using a PCRE regex. Here the (probably i

Re: [Haskell-cafe] A weird bug of regex-pcre

2012-12-18 Thread José Romildo Malaquias
On Tue, Dec 18, 2012 at 02:28:26PM +0800, Magicloud Magiclouds wrote: > Attachment is the test text file. > And I tested my regexp as this: > > Prelude> :m + Text.Regex.PCRE > Prelude Text.Regex.PCRE> z <- readFile "test.html" > Prelude Text.Regex.PCRE> let (b, m ,a, ss) = z =~ " href=\"(.*?)\">.*