pcre.c:和运营商 [英] pcre.c : And Operator

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

问题描述



我正在使用pcre.c为我的应用程序提供正则表达式支持

软件。我想知道如何在这里进行和操作。我没有从网上获得任何有用的信息。


这个运营商是否可用?如果不是我们怎么能这样做?
操作?任何填充回复或重定向将不胜感激。


谢谢,

Ganesh

解决方案

sg*******@yahoo.co.in 写道:


我正在使用pcre.c为我的应用软件提供正则表达式支持。我想知道如何在这里进行和操作。我没有从网上获得任何有用的信息。

这个运营商是否可用?如果不是我们怎么能这样做呢?任何填充的回复或重定向将不胜感激。

谢谢,
Ganesh




一个常规的AND运算符是什么表达式?


gtoomey


>>正则表达式中的AND运算符究竟是什么?


如果你有OR(|)运算符,那么(&)


sg ******* @ yahoo.co.in 写道:

正则表达式中的AND运算符究竟是什么?



如果你有OR(|)运算符,那么(&)




来自 http://www.perl.com/doc/manual/html/pod/perlre .html

|是交替


即[a | b | c] x将匹配ax或bx或cx


但是没有&因为它毫无意义。假设你的[a& b& c] x。它需要同时使用ax和bx和cx这是不可能的
。它的b $ b无意义。


gtoomey


Hi,
I''m using pcre.c to provide regex support for my application
software. I want to know how to do ''AND'' operation in this. I didn''t
got any useful info from the net.

Is this operator available or not? If not how could we do this
operation? Any stuffed replies or redirection will be appreciated.

Thanks,
Ganesh

解决方案

sg*******@yahoo.co.in wrote:

Hi,
I''m using pcre.c to provide regex support for my application
software. I want to know how to do ''AND'' operation in this. I didn''t
got any useful info from the net.

Is this operator available or not? If not how could we do this
operation? Any stuffed replies or redirection will be appreciated.

Thanks,
Ganesh



What on earth is an AND operator in a regular expression?

gtoomey


>> What on earth is an AND operator in a regular expression?

If you have an OR ( | ) operator, where is the ( & )


sg*******@yahoo.co.in wrote:

What on earth is an AND operator in a regular expression?



If you have an OR ( | ) operator, where is the ( & )



From http://www.perl.com/doc/manual/html/pod/perlre.html
| is alternation

ie [a|b|c]x will match ax or bx or cx

But there is no & as its meaningless. Suppose your could have [a&b&c]x . It
would need to ax and bx and cx simultaneously which is impossible. Its
meaningless.

gtoomey


这篇关于pcre.c:和运营商的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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