テキスト1をテキスト2に変更したい。どうすれば正規表現を書くことができますか?テキストにはサブセクションが含まれています。新バージョンコンマ中括弧の正規表現
で区切られるべきテキスト1:
{Any
{White-collar
{Exec-managerial}
{Prof-specialty}
{Sales}
{Adm-clerical}
}
{Blue-collar
{Tech-support}
{Craft-repair}
{Machine-op-inspct}
{Handlers-cleaners}
{Transport-moving}
{Priv-house-serv}
}
{Other
{Protective-serv}
{Armed-Forces}
{Farming-fishing}
{Other-service}
}
}
テキスト2:
Exec-managerial,White-collar,Any
Prof-specialty ,White-collar,Any
Sales,White-collar,Any
Adm-clerical,White-collar,Any
Tech-support,Blue-collar,Any
Craft-repair,Blue-collar,Any
Machine-op-inspct,Blue-collar,Any
Handlers-cleaners,Blue-collar,Any
Transport-moving,Blue-collar,Any
Protective-serv,Other,Any
Armed-Forces,Other,Any
Farming-fishing,Other,Any
Other-service,Other,Any