Fixed Length Regex Required?
问题 I have this regex that uses forward and backward look-aheads: import re re.compile(\"<!inc\\((?=.*?\\)!>)|(?<=<!inc\\(.*?)\\)!>\") I\'m trying to port it from C# to Python but keep getting the error look-behind requires fixed-width pattern Is it possible to rewrite this in Python without losing meaning? The idea is for it to match something like <!inc(C:\\My Documents\\file.jpg)!> Update I\'m using the lookarounds to parse HTTP multipart text that I\'ve modified body = r\"\"\"------abc