2015-09-08 60 views
1

我需要做一个查找&替换(不在代码中,在VB IDE或文本编辑器中)。使用RegEx替换行需要帮助

我需要:

则IsNumeric(CINT(whatevertextishere))

,并更改为

则IsNumeric(whatevertextwasthere)

我已经尝试过:

IsNumeric\(CInt\(.*\)\) 

for find,and IsNumeric($1) for replace,the find works,but the replace does not。它只是用文字IsNumeric($1)替换它,而不是放置匹配的文本,它应该是“whatevertextishere”。

我在做什么错?

回答

1

您没有在正则表达式定义的捕获组(括号转义):

IsNumeric\(CInt\((.*)\)\) 
+0

非常感谢! – Chris

+0

不客气:-) –