64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> path = '/foo/fu'
>>> s = 'gcc /foo/fu/bar.c -I /foo/fu/includes'
>>> r = re.compile(path + r'.*?(?:\s|$)')
>>> r.findall(s)
['/foo/fu/bar.c ', '/foo/fu/includes']
>>>
Пожалуйста ❤️
Что за магия?!?!!?!?!?!!
Обсуждают сегодня