0

using re.match and re.groupdict() to parse long lines with parentheses in input. These are raw r'strings', but the parentheses in the input result in a no match. When i take out the parentheses from the fake input, the re works. Since these are raw strings, what is the best way to handle this, removing the parentheses from the input is not really a good option.

Barmar
  • 741,623
  • 53
  • 500
  • 612
rjt
  • 1,042
  • 10
  • 16

0 Answers0