简体   繁体   English

正则表达式语句替换两个文字内的文本

[英]Regular Expression statement to replace text inside two literals

i have n line of code starting with 我有一行代码开头

(21714,
(21715,

I want to replace the numeric values with NULL string to get 我想用NULL字符串替换数值来获取

(NULL,
(NULL,

Please suggest the reqular expression I should use in Edit plus Find Replace functionality to achieve this. 请在Edit和Find Replace功能中建议我应该使用的reqular表达式来实现这一点。

它可能看起来像这样(这个例子是用js编写的,但我不认为这是一个问题):

'(21714, (21715, ...'.replace(/^(\([0-9]*\,\s\([0-9]*)/, "(NULL, (NULL");

I have tested these steps via EditPlus v3.41: 我已经通过EditPlus v3.41测试了这些步骤:

step1. 第1步。 Menu > Search > Replace 菜单>搜索>替换

step2. 第2步。 click "More" button 单击“更多”按钮

step3. 第3步。 input pattern \\([0-9]+, to "Find what" 输入模式\\([0-9]+,到“查找内容”

step4. 第四步。 Replace with (NULL, 替换为(NULL,

^([0-9]* ^([0-9] *

I used this, it searched for occurrences: (21714 (21715 我用它,它搜索了事件:(21714(21715

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM