Created
April 8, 2021 10:25
-
-
Save MerleLiuKun/f890d3f107ad05b0cae76a8caee4ef45 to your computer and use it in GitHub Desktop.
Regex Demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
# 获取 script 标签中的变量数据 ex: var abc = {data: {"actionModule": "abc"}}; | |
get_script_var_re = re.compile('var abc = (.*?};)?') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment