/usr/share/doc/libghc-regexpr-doc/html/index.html is in libghc-regexpr-doc 0.5.4-11build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>regexpr-0.5.4: regular expression like Perl/Ruby in Haskell</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">regexpr-0.5.4: regular expression like Perl/Ruby in Haskell</p></div><div id="content"><div id="description"><h1>regexpr-0.5.4: regular expression like Perl/Ruby in Haskell</h1><div class="doc"><p>Regular expression library like Perl and Ruby's regular expressions.
This package has a module RegexPR.
And RegexPR export functions matchRegexPR and gsubRegexPR.</p><pre>matchRegexPR :: String -> String -> Maybe ((String, (String, String)), [(Int, String)])
multiMatchRegexPR :: String -> String -> [ ((String, (String, String)), [(Int, String)]) ]
gmatchRegexPR :: String -> String -> [ ((String, (String, String)), [(Int, String)]) ]
getbrsRegexPR :: String -> String -> [ String ]
ggetbrsRegexPR :: String -> String -> [ [ String ] ]
subRegexPR :: String -> String -> String -> String
subRegexPRBy :: String -> (String -> String) -> String -> String
gsubRegexPR :: String -> String -> String -> String
gsubRegexPRBy :: String -> (String -> String) -> String -> String
splitRegexPR :: String -> String -> [String]</pre><p>Examples</p><pre>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"
subRegexPR "(?<=(.)(.)(.))e" " \\3\\2\\1 " "abcdefg" => "abcd dcb fg"
gsubRegexPR "(?ixm) aBc . # comment \n\n" "abc!" "abc\nABCDAbcAbc" =>
"abc!abc!abc!bc"
gmatchRegexPR "(?=(?<!(?!abc)))abc" "abcdefdefabc" =>
[(("abc", ("", "defdefabc")), []), (("abc", ("defdef", "")), [])]
splitRegexPR "\\s*,\\s*" "a,b ,c\t ,d , e" => ["a","b","c","d","e"]</pre></div></div><div id="module-list"><p class="caption">Modules</p><ul><li><span id="control.n.1" class="module collapser" onclick="toggleSection('n.1')">Text</span><ul id="section.n.1" class="show"><li><span class="module"><a href="Text-RegexPR.html">Text.RegexPR</a></span></li></ul></li></ul></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|