URL example = 'https://stackoverflow.com/questions/ask?newreg=12f6529a5b3449c3be1d14458a4657ef'
i want to return the barcode number after ''newreg' in the URL. The string is not same len everytime
Would appreciate any help here
Thanks
URL example = 'https://stackoverflow.com/questions/ask?newreg=12f6529a5b3449c3be1d14458a4657ef'
i want to return the barcode number after ''newreg' in the URL. The string is not same len everytime
Would appreciate any help here
Thanks
Why not just use simple split() ?
url = 'https://stackoverflow.com/questions/ask?newreg=12f6529a5b3449c3be1d14458a4657ef'
barcode = url.split('=')[-1]
Hope this helps!