haskell-hvr / regex-pcre Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://hackage.haskell.org/package/regex-pcre
License: Other
Home Page: https://hackage.haskell.org/package/regex-pcre
License: Other
Does this package support PCRE2? Reading the code I can’t see any reference to PCRE2. Do you have any knowledge of another Haskell package with pcre2 support?
I think that strings that contain Unicode characters are incorrectly matched. For example, using regex-pcre
in ghci
gives us unexpected result:
> "Č123456" =~ "4" :: (String, String, String)
("\268\&1234","5","6")
Similar example without Unicode characters produces expected result:
> "C123456" =~ "4" :: (String, String, String)
("C123","4","56")
Tested with regex-pcre 0.95.0.0
and ghc 8.6.5
I should add that libpcre
installed on my system is working fine.
This bug is probably related to incorrect matching of strings that contain unicode.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.