How does a regex look like for
Input: Rood Li-Ion 12 G6
Match: "Rood" "Li-Ion" "G6"
1. I tried \b[\w-]+\b /g
But that matches the "12" also!
2.I tried
/([0-9]+)?[a-zA-Zê]/
But that didn't match G6.
I want all words even if they have a number in them but I dont want only numbers to match. How is this possible. Whitespace also shall not be part of the match.
"Rood Li-Ion 12 G6" shall become 3 strings of "Rood","Li-Ion","G6"