Split at hyphens if NOT preceded by a whitespace or IS followed by a whitespace
Channel: Peter Schneider
Date: 29/10/2022

Split at hyphens if NOT preceded by a whitespace or IS followed by a whitespace
I hope you found a solution that worked for you :)
 The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA  |
Thanks to all those great people for their contributions!

 (stackoverflow.com/users/8281994/florian-walther)Florian Walther |
 (stackoverflow.com/users/5459839/trincot)trincot |
 (stackoverflow.com/users/548225/anubhava)anubhava |
 (stackoverflow.com/users/3832970/wiktor-stribi%c5%bcew)Wiktor Stribiżew |
 (stackoverflow.com/users/5424988/the-fourth-bird)The fourth bird |
 A special thanks goes out to the (https://stackoverflow.com/questions/74220835/split-at-hyphens-if-not-preceded-by-a-whitespace-or-is-followed-by-a-whitespace)Stackexchange community |
 
 I wish you all a wonderful day! Stay safe :)
 
  regex javascript split