I have A string:
line_to_test = "http://website/[SequenceOfLetters&NumbersONLY].html"
I want a regex for matching the above pattern:
what i have tried currently is:
c = len(re.findall(r"http:\/\/website\/([a-zA-Z0-9]?).html",line_to_test))
But c here comes to be null even when the line_to_test contains the pattern.
([a-zA-Z0-9]?)= 1 or 0 letter or number - if you want a sequence, you want to replace?with+...test_string = "sdfmknldksjfnkmsd f,nm http://abc.de/msndkjnaskl.html"