javascript - Rewrap text wrapped with wrong marks/brackets
问题描述
I need some help. I'm using Atom as ide and I need to rewrap some texts with other characters in order to fix a bunch of typos in a code.
Example:
"text1":"text2"
has to become
foo['text1'] = "text2"
I Just need to rewrap a word with other things of my choice obviously keeping the original word inside it. Does anyone knows a plugin for Atom or NPP or any text editor that could do at least something similar?
Question:
Does anyone knows how to do this with a regex instead?
I think it is a pretty common mistake to fix.
Thank you so much in advance.
解决方案
推荐阅读
- angular - 标签上的下载属性在 Edge 中不起作用
- r - 低频率的观察全部在训练集中并在预测()中产生错误
- tcpdf - TCPDF - 标题图像仅显示在第一页
- reactjs - 如何覆盖来自另一个模块的组件?
- javascript - 正则表达式除了在 , 之后尾随一个空格外
- r - 按每个字符将字符串分隔到列
- javascript - 在集合级别设置参数化 responseCode.code 检查
- d3.js - 为什么 d3.csv() 将第一行转换为数组,将其他行转换为对象?
- java - 如何在以下代码中修复此错误?
- javascript - jQuery 中的 Delay() 与 SetTimeOut()