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.
私は 1 つの文字列を持っています('Hassiotis, Sophia(SH1)')。
('Hassiotis, Sophia(SH1)')
そこからSH1だけ欲しい。
正規表現は何ですか?
ありがとうございました。
メモ帳++を使用しています
あなたの質問からSH1は十分でしょう;-)、しかし、私はあなたがもっと柔軟なものを望んでいないのではないかと思います。
SH1
\('.*\((.*)\)'\)
解決策かもしれません。新しいメモ帳++が必要だと思います。一致した文字列は\1、置換文字列で参照できます。
\1