Benature
  • Home
  • Tags36
  • Categories4
  • Archives93
  • Python
  • Search

python正则表达式

Posted on 2019-10-11 In Python Views: Views: Valine:

regex

多行匹配用单行模式

1
longtables = re.findall(r"\\begin{longtable}.*?\\end{longtable}", tex_raw, flags=re.DOTALL) # 单行模式

https://www.lfhacks.com/tech/python-re-single-multiline

# Python
python读Excel
WSL安装MySql
  • Table of Contents
  • Overview
Benature

Benature

Code is Love, Physics is Beauty.
93 posts
4 categories
36 tags
GitHub
0%
© 2017 – 2020 Benature
|