Skip to content

Conversation

@pekopoke
Copy link
Collaborator

@pekopoke pekopoke commented Sep 5, 2025

No description provided.

# 同时匹配行内代码 `...` 和代码块 ```...```
pattern = r'(```[\s\S]*?```)'
for match in re.finditer(pattern, text):
# # 同匹配行间代码块 ```...```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加个单测吧

@e06084 e06084 merged commit b34a46f into opendatalab:main Sep 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants