I'm having some trouble to extract a substring without including the delimiters.
x = "- dubuque3528 [21/Jun/2019:15:46:"
or
x = "- - [21/Jun/2019:15:46:"
user_name = re.findall('.-.*\[', x)
That returns: "- dubuque3528 ["
or "- - [".
I would like to retrieve "dubuque3528" or "-" instead.