Regex Kata — Remove Whitespace in Markdown Hypertext

usecase

The concern is documenting the need to remove whitespace with regex

Image for post
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!
Image for post
  • find: (\w)\s+\]
  • replace with $1]
Image for post

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store