var s = decodeURIComponent((new RegExp('[?|&]userid=([^&;]+?)(&|#|;|$)').exec(location.href || [''])[1].replace('/\+/g','%20'))||null); console.log(s);
import re class Retest: def __init__(self,string,path): self.string = string self.path = path def retest(self): res = re.search(self.string,self.path,flags=0).group() # res.group() print res return if __name__ == '__main__': a = 'helloworld' b = 'he(