python regex include end-of-line char in capture group or not?

后端 未结 0 942
温柔的废话
温柔的废话 2021-02-03 11:45

When doing a search within a line that includes the end of the line should one include the $ into the capture group or not?

Example included:

x=re.search(&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题