使用 Android Studio(idea), 想仅仅替换 xml 中 value 的某些特殊字符
我有类似如下格式的 xml:
<string name="a_b_c>d_e_f_g</string>
<string name="h_i_j>k_l_m_n</string>
如何不替换 key 中的 _ , 仅替换 value 中的 _ 为空格呢? 就像下面的一样
<string name="a_b_c>d e f g</string>
<string name="h_i_j>k l m n</string>
我只能使用 (?<=>)(?:.*(_).*)+(?=</)
像下面的一样, 只能选择到所有的 value:
不过并不符合我的要求. 如何仅查找到 value 中的 _ 然后替换成空格呢