Jonas Hietala 1/25/2019

Regex substitution with unicode in Haskell

Read Original

The article details a developer's challenge with regex libraries in Haskell not handling Unicode by default, which broke automatic YouTube link embedding. It presents a working solution using the Text.Regex.PCRE libraries to compile a UTF-8 regex and perform substitutions, converting plain link paragraphs into embedded video HTML.

Regex substitution with unicode in Haskell

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week