我想在re.sub正则表达式字符串中添加一个标志.在PHP中,我会这样做' \test is good\i'
\test is good\i
我在re.compile中试过这个,但它没有.sub方法.我试图使用s.replace,但我也不能添加i标志
.sub
s.replace
i
python regex flags
flags ×1
python ×1
regex ×1