Pythonを使用してYAMLでこの正規表現を保存して読み取る方法はありますか:
regular: /<title [^>]*lang=("|')wo("|')>/
誰にもこれに対するアイデアや解決策がありますか?
次のエラーがあります。
% ch.encode('utf-8'), self.get_mark())
yaml.scanner.ScannerError: while scanning for the next token
found character '|' that cannot start any token
in "test.yaml", line 10, column 49
私のコード:
def test2():
clueAppconf = open('test.yaml')
clueContext = yaml.load(clueAppconf)
print clueContext['webApp']