需要帮助做一个egrep和替换 [英] need help doing a egrep and replace
本文介绍了需要帮助做一个egrep和替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在,我正在使用这行代码来删除我不想要的名为alarmNotification的文件中的数据:
Right now, I am using this line of code to get rid of data in a file called alarmNotification that I do not want:
展开 | 选择 | Wrap | 行号
推荐答案
我想你应该改变正则表达式。
你用的。我也认为它选择了错误的模式。
为什么你不能这样使用
[az] a [z] [az] \。[az] az] AZ] \。 ==> for com.cboe
Raghu
I think u shuld change the regex for this.
As u use . also i thnk it is picking a wrong pattern.
Why cant u use like this
[a-z]a[z][a-z]\.[a-z]a-z]a-z]\. ==> for com.cboe
Raghu
所以你的意思是这样的正则表达式:
So you mean have the regex like this:
展开 | 选择 | Wrap | 行号
这实际上是问题:
这个正则表达式:
This is the problem actually:
This regex:
展开 < span class =codeDivider> | 选择 | Wrap | 行号
这篇关于需要帮助做一个egrep和替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文