Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- mkRegMultilineComment :: String -> String -> Regex
Documentation
mkRegMultilineComment :: String -> String -> Regex Source #
Create regex for multiline comments.
>>>
debugPrint $ mkRegMultilineComment "<" ">"
'<'(char-'>')*'>'
>>>
debugPrint $ mkRegMultilineComment "/*" "*/"
{"/*"}(char-'*')*'*'((char-["*/"])(char-'*')*'*'|'*')*'/'
>>>
debugPrint $ mkRegMultilineComment "<!--" "-->"
{"<!--"}(char-'-')*'-'((char-'-')+'-')*'-'((char-["->"])(char-'-')*'-'((char-'-')+'-')*'-'|'-')*'>'