find = re.compile("^(.*)\..*")
for l in lines:
m = re.match(find, l)
print m.group(1)
Я хочу регулярное выражение в строке до первой точки.
в [email protected], я хочу [email protected]
в [email protected], я хочу [email protected]
в [email protected], я хочу [email protected]
Что мой код дает мне...
-
[email protected]печатает[email protected] -
[email protected]prints[email protected] -
[email protected]prints[email protected]
что должно быть так, чтобы он получал только @b?