GREP [英] GREP

查看:94
本文介绍了GREP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i想要构建一个成功的grep命令,当且仅当

行只包含字母和空格时没有特殊字符和
$ b $允许使用b数字


i want to frame a grep command which is successful if and only if the
line contains ONLY alphabets and spaces no special characters and
digits are allowed

推荐答案



" Rishi" < po ******* @ gmail.comwrote in message

"Rishi" <po*******@gmail.comwrote in message

i想要构建一个grep命令,当且仅当

行只包含字母和空格没有特殊字符和

数字
i want to frame a grep command which is successful if and only if the
line contains ONLY alphabets and spaces no special characters and
digits are allowed



尝试comp.lang.perl。


正则表达式是Perl的一个整体部分。在C中你必须自己获得

库,语法不同。


-

免费游戏和编程好东西。
http://www.personal.leeds.ac.uk / ~bgy1mm

Try comp.lang.perl.

Regular expressions are an integeral part of Perl. In C you have to get the
library yourself, and syntax differs.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm


Malcolm McLean写道:
Malcolm McLean wrote:

>

Rishi < po ******* @ gmail.comwrote in message
>
"Rishi" <po*******@gmail.comwrote in message

>我想构建一个grep命令,当且仅当
行只包含字母和空格没有特殊字符和
数字
>i want to frame a grep command which is successful if and only if the
line contains ONLY alphabets and spaces no special characters and
digits are allowed



尝试comp.lang.perl。

Try comp.lang.perl.



实际上comp.unix.programmer可能更合适。

Actually comp.unix.programmer might be more appropriate.


在文章< 0c**********************************@e4g2000hsg.g ooglegroups.com> ;,

Rishi< po ******* @ gmail.comwrote:
In article <0c**********************************@e4g2000hsg.g ooglegroups.com>,
Rishi <po*******@gmail.comwrote:

>我想构建一个grep命令,当且仅当
行只包含字母和空格,没有特殊字符和
数字允许
>i want to frame a grep command which is successful if and only if the
line contains ONLY alphabets and spaces no special characters and
digits are allowed



你还没有定义字母。你需要匹配

德国Eszett和(更常见的)Sanskrit ghnya吗?

-

"有没有可以这么说,看,这是新的吗?它已经过去了,这已经是我们面前的旧时代了。 - 传道书

You haven''t defined "alphabets". Do you need to match the
German Eszett along with the (rather more common) Sanskrit ghnya ?
--
"Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us." -- Ecclesiastes


这篇关于GREP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆