2
を使用してPythonでパターンを見つける:私は正規表現構築しようとしている再(レゲエ)
mystring = /some/path/with/%variable%/%inside%/%it%/
re.findall("[^\s%]+", allocine_spec[key])
そして、これは次のように返します。
['/some/path/', 'variable', '/', 'inside', '/', 'it']
をしかし、私は唯一の希望:
['variable', 'inside', 'it']
これは可能ですか?あなたがはるかに簡単な正規表現必要