I have this string:
"<C (programming language)> <C++ (programming language)> <Programming Languages> <Computer Programming> "
And i want to obtain a list of substrings, like this:
['<C (programming language)>','<C++ (programming language)>','<Programming Languages>','<Computer Programming>']
I tried to use re library python but without success
<.*?>should have worked, as you have correctly used the non-greedy*?. Try that with the answer you picked. But this greedy*vs. non-greedy*?is always confusing, so I'd also go with the much clearer<[^>]*>or<[^>]+>.