I have a sentence like this Give me 4 of ABCD_X and then do something
I need to extract ABCD_X
- any set of characters after Give me 4 of
and before space.
Number can be any size
I am able to do it with this expression (taken from this question):
(?<=^Give me \d of )(.*?)(?=\s)
But the number can be 10 or greater, so
(?<=^Give me \d+ of )(.*?)(?=\s)
returns error in python (pandas column) that positive lookbehind should be fixed width.
Is there a way to avoid positive lookbehind to exract those characters?