我正在使用 pyGithib 库查看 github 存储库中所有以 *.rb 结尾的文件的内容,使用该库我得到一个这种格式的字符串
desc 'heading \'Test this too\')
Rationale: Best Practice
this line is also included in description '
config 'xxx' do
title 'this is a dummy title \'Test this too\' for this block'
desc 'Demo (test this) description \'Test this too\')
Rationale: Best Practice
this line is also included in description '
tag benchmark: 'xyz:11'
tag level: 1
tag version: '0.0.1'
tag reference: 'version 2.4'
tag resource_type: 'A'
使用正则表达式,我如何获得在多行之后desc
以及version
在config
块之后包含的字符串的值