I don’t know much about regexes and am trying to learn them. I am using Python and need to use re.compile to make a regex that matches any string that starts with a variable string. The string is variable url. Currently I have re.compile('%s*'%url), but it does not seem to work. What am I doing wrong?
I don’t know much about regexes and am trying to learn them. I am
Share
Use
re.escape(url):