I am having some trouble to exact the string from URL using re library.
here's an example:
http://www.example.it/[email protected]&direction=vente.aspx%3pid%xx123%63abcd"
I have a dataframe and i want to add a column using a value from another column, in this example df['URL_REG'] contains: '123'?
df['URL_REG'] = df['URL'].map(lambda x : re.findall(r'[REGEX]+', x)[0])
the structure of URL can change but the part that i want comes always between 'direction=vente.aspx%3pid%' and '%'.