sto cercando di testare una stringa per uno schema di base html e anche se uso il modificatore (multilinea) m funziona solo quando la stringa è un 1-linerClojure multilinea espressione regolare
(re-find #"(?im)^<html>.*<body>.*</body>.*</html>" c))
fallisce:
"<html> <body> sad </body>
</html>"
Works:
"<html> <body> sad </body> </html>"
che cosa sto facendo di sbagliato?
Lo lascerò qui http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 – mobyte