Regex Kata — Remove Whitespace in Markdown Hypertext
Jan 15, 2021
usecase
The concern is documenting the need to remove whitespace with regex
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]