I am new python programming. I have been trying to find some data after matching a string using regex.
For example:
str1 = 'ethernet33 20628103568 111111 22222222222 '
I am only looking for '20628103568', however with my code, it is printing everything after ethernet33
Here is the code
match1 = re.search("(?<=ethernet33\s).*(?<=\s)", str1)
print match1.group()
output:
20628103568 111111 22222222222
expected output:
20628103568
Any guidance on how to modify the above regex to achieve this is would be much appreciated