[Haskell-beginners] subRegex https? with anchor href tags

Shakthi Kannan shakthimaan at gmail.com
Sat Nov 12 18:12:28 CET 2011


Hi,

--- On Sat, Nov 12, 2011 at 8:59 PM, Daniel Fischer
<daniel.is.fischer at googlemail.com> wrote:
| Prelude Text.Regex> putStrLn $ subRegex (mkRegex "https?://([:alpha:]|
| [0-9]|.[[:alpha:]0-9])+") "The best is http://haskell.org." "<a
| href=\"\\0\">there</a>"
| The best is <a href="http://haskell.org">there</a>.
\--

Thank you very much.

I have made the changes available (can be improved?) at:

  https://gitorious.org/shakthimaan-tweets/mainline/blobs/master/html.hs

The output is at:

  http://www.shakthimaan.com/links/tweets.html

Appreciate your help!

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com



More information about the Beginners mailing list