Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これが私が数百の場所に持っているもの[:admin, @account]です。私がやりたい[:admin, ]のは、残っているものがすべて、@accountまたは私がそこに持っているオブジェクトになるように削除することです。時々それは[:admin, ticket]またはですので[:admin, group]。
[:admin, @account]
[:admin, ]
@account
[:admin, ticket]
[:admin, group]
正規表現を使用して、ラップされたブラケット([])とを削除することは可能:admin,ですか?
[]
:admin,
textmateが正規表現をどの程度正確に処理しているかはわかりませんが、Scintillaベースでは次のようになります。
\[:admin,\s+([^\]]+)\] $1