Replacing Edit · import re >>> mystring = 'This string has a q in it' >>> pattern = re.compile(r'(a[n]? )(\w) ') >>> newstring = pattern.
確定! 回上一頁