News for hackers. Stuff that matters.
Re:The Greatest Regex Trick Ever (2014) by PennRobotics on Friday July 09, 2021 @06:57AM (#27782395)
If you are comparing the match to the wanted string, it defeats the purpose of the capture group.

  if "tarzan" == re.search(r'"tarzan"|tarzan', myvar)[0]:
      ...
Am I missing something?

There are no comments on this comment yet.