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.
アンダースコアで区切られた文字列があります:
id_name_type_environment
これは私に次のようなものを与えるでしょう:
基本的に、名前を取得する必要があるタイプに基づいています。文字列の解析と部分文字列を行うのではなく、If type = x then extract the name を行う正規表現を使用してこれを行いたいと思います
これを行う簡単な正規表現の方法はありますか?