在gedit中使用Regex进行搜索和替换

时间:2016-04-10 05:19:42

标签: gedit

我想用逗号替换所有出现的字符); 在这样的文字中:

                    mapMessage.getString("obj_file_path", user_ftp_path + app_path);
                mapMessage.getString("storeid", storeid+"");
                mapMessage.getString("name_farsi", name_farsi);
                mapMessage.getString("name_english", name_english);
                mapMessage.getString("group", group+"");
                mapMessage.getString("price", app_price+"");
                mapMessage.getString("icon", icon);
                mapMessage.getString("app_path", app_path);
                mapMessage.getString("desc_farsi", desc_farsi);
                mapMessage.getString("desc_english", desc_english);
                mapMessage.getString("isfarsi", isfarsi);
                mapMessage.getString("tags", tags);
                mapMessage.getString("shot1", shot1);
                mapMessage.getString("shot2", shot2);
                mapMessage.getString("shot3", shot3);
                mapMessage.getString("shot4", shot4);
                mapMessage.getString("shot5", shot5);
                mapMessage.getString("changes_fa", changes_fa);
                mapMessage.getString("changes_en", changes_en);
                mapMessage.getString("upload_real_address", upload_real_address);
                mapMessage.getString("apk_upload", apk_upload);
                mapMessage.getString("app_upload_valid_shot", app_upload_valid_shot);

所以在替换完成之后,例如第一行应该是:

mapMessage.getString("obj_file_path");

1 个答案:

答案 0 :(得分:0)

我认为您只需要使用,。* $ 进行搜索和替换;

确保"正则表达式"选中复选框。