RubyFlow The Ruby and Rails community linklog

Alphabets Benchmarks - How many ways to unaccent a text string? And the winner is...

Hello, let’s try out half a dozen ways to unaccent a text string? What’s the fastest way to turn AÄÁaäá EÉeé IÍiíï NÑnñ OÖÓoöó Ssß UÜÚuüú into AAAaaa EEee IIiii NNnn OOOooo Ssss UUUuuu? Let’s benchmark and the winner is… Spoiler: gsub . Can you find a faster way? Show us. Happy data (and text) wrangling with ruby. Cheers. Prost.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in