DEV Community

Discussion on: 1 line of code: How to reverse all words of a string

Collapse
 
lexlohr profile image
Alex Lohr

We could also use the new RegExp Extension for Unicode property classes and use /(\p{L}+)/gu as the RegExp.