The regexpr package
Regular expression library like Perl/Ruby's regular expression. This package has a module RegexPR. And RegexPR export function matchRegexPR and gsubRegexPR. | some matchRegexPR :: String -> Maybe ((String, (String, String)), [(Int, String)]), gsubRegexPR :: String -> String -> String. Examples: matchRegexPR "ab(cde)f\\1" "kkkabcdefcdefgh" => Just (("abcdefcde", ("kkk", "fgh")),[(1,"cde")]), matchRegexPR "(?<=hij)abc" "kkkabchijabcde" => Just (("abc",("kkkabchij","de")),[]), gsubRegexPR "\\G(\\d\\d\\d)" "\\1," "123456 789" => "123,456, 789"
Properties
| Versions | 0.1.3, 0.1.5, 0.1.6, 0.1.7, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.5, 0.2.6, 0.2.8, 0.2.9, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.4, 0.5, 0.5.1, 0.5.3, 0.5.4 |
|---|---|
| Dependencies | base, HUnit, mtl |
| License | GPL |
| Author | Yoshikuni Jujo <PAF01143@nifty.ne.jp> |
| Maintainer | PAF01143@nifty.ne.jp |
| Category | Text |
| Upload date | Wed Jan 17 02:17:17 UTC 2008 |
| Uploaded by | YoshikuniJujo |
| Build failure | ghc-6.10 (log), ghc-6.12 (log), ghc-6.8 (log) |
| Distributions | Fedora: 0.5.4, NixOS: 0.5.4, Debian: 0.5.4 |
Modules
- Text
- Text.RegexPR
Downloads
- regexpr-0.1.5.tar.gz (Cabal source package)
- package description (included in the package)