Million dollar question. My post was rejected due to this post. But there seems to be insufficient information for a successful conclusion.
I need to use a regular expression to find ANY exactly five characters, including line feed. I have this so far:
five = "s6<\na" m = re.match(r"^.{5}$+",six,re.DOTALL)
This is the error I get:
File "q01d.py", line 10, in <module> m = re.match(r"^.{5}$+",five,re.DOTALL) sre_constants.error: nothing to repeat
I’m not sure what we are not doing here, but I’ll publish it if I decide this in between.
Sadieose
source share