Regex Kata — Remove Whitespace in Markdown Hypertext

Pavol Kutaj
Jan 15, 2021

--

usecase

The concern is documenting the need to remove whitespace with regex

how to remove all this whitespace in my python curriculum?

1. solution

  • some people dislike regex for its conciseness and lack of expressive power but once I got used to it, I see problems and solutions in unusual places!
  • find: (\w)\s+\]
  • replace with $1]

--

--

No responses yet