[project @ 2002-05-09 13:16:29 by simonmar]
[ghc-base.git] / Text / Regex.hs
index 43a73a3..9551102 100644 (file)
@@ -2,14 +2,12 @@
 -- |
 -- Module      :  Text.Regex
 -- Copyright   :  (c) The University of Glasgow 2001
--- License     :  BSD-style (see the file libraries/core/LICENSE)
+-- License     :  BSD-style (see the file libraries/base/LICENSE)
 -- 
 -- Maintainer  :  libraries@haskell.org
 -- Stability   :  experimental
 -- Portability :  non-portable (only on platforms that provide a regex lib)
 --
--- $Id: Regex.hs,v 1.2 2002/04/24 16:31:46 simonmar Exp $
---
 -- Regular expression matching.
 -- Uses the POSIX regular expression interface in Text.Regex.Posix for now.
 --
@@ -49,10 +47,10 @@ matchRegex p str =
        Just (before, match, after, sub_strs) -> Just sub_strs
 
 matchRegexAll :: Regex -> String ->
-        Maybe ( String,  -- $`
-                String,  -- $&
-                String,  -- $'
-                [String] -- $1..
+        Maybe ( String,  -- \$`
+                String,  -- \$&
+                String,  -- \$'
+                [String] -- \$1..
               )
 matchRegexAll p str = unsafePerformIO (RE.regexec p str)