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.
文字列の例:
a1-a2.b1-b2-b3.c1-c2
次のようなフィールドを抽出する必要があります。
a1-a2 b1-b2-b3 c1-c2
ハイフンとドットで区切られた単語のグループ
次の正規表現を使用できます。
[^\.]*
gすべての出現箇所を修飾子と一致させます。
g
正規表現テスター