Допустим, у меня есть такая строка:
"(1) This is the first one. (2) This is the second one. (3) This is the third one."
И я хочу использовать регулярное выражение Python 2 для захвата таких элементов:
"(1) This is the first one."
"(2) This is the second one."
"(3) This is the third one."
Сейчас япытался это:
re.findall(r'\(\S\).*',string)
Но я получаю это как один результат:
"(1) This is the first one. (2) This is the second one. (3) This is the third one."
Какое здесь может быть решение?