找到&替换问题 [英] Find & Replace Question

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

问题描述

我想找一个&使用正则表达式的字符。但不是&&

如何在c#Quickfind窗口中管理它?

------------------ --------------------------------

ne kadar yatarsan yata

sevdiein kadardyr?mrün:(

---------------------------------- ----------------

解决方案




然后只使用一个单词&。


"&"在正则表达式中不是特殊字符。


-

Dave Sexton


" inpuarg"< in ***** @ whereland.comwrote in message

新闻:6r ******************************** @ 4ax.com ...
< blockquote class =post_quotes>
>我想找到一个使用Regex的&字符。但不是&&

如何在c#Quickfind窗口中管理它?

-------------------------------------------- ------

ne kadar yatarsan yata

sevdiein kadardyr?mrün:(

------ --------------------------------------------



确定。问题是,当我搜索&它找到的角色

me every&&聊天也。而且我对此并不感兴趣。

有数百万的逻辑操作。我有兴趣用

单& 。


2006年12月2日星期六06:40:06 -0500,Dave Sexton

< dave @jwa [remove.this] online.comwrote:


>

然后只需使用一个&。

"&安培;"在正则表达式中不是一个特殊的字符。



---------------------------------- ----------------

ne kadar yatarsan yata

sevdiein kadardyr?mrün:(

--------------------------------------------------





对不起 - 我误解了。


我不喜欢我认为这是可能的。在VS 2005版的Regex中似乎没有任何

负面预测断言:


正则表达式(Visual Studio)
http://msdn2.microsoft.com/en-us/lib...cs(VS.80).aspx


-

Dave Sexton


" inpuarg"< in ***** @whereland.comwrote in message

新闻:iu ******************************** @ 4ax.com ...


ok.ut问题是,当我搜索&它找到的角色

me every&&聊天也。而且我对此并不感兴趣。

有数百万的逻辑操作。我有兴趣用

单& 。


2006年12月2日星期六06:40:06 -0500,Dave Sexton

< dave @jwa [remove.this] online.comwrote:


>>

然后只需使用一个&。

"&"在正则表达式中不是一个特殊的字符。



---------------------------------- ----------------

ne kadar yatarsan yata

sevdiein kadardyr?mrün:(

--------------------------------------------------



I want to find a & character using Regex. But not &&
How can i manage this in c# Quickfind window ?
--------------------------------------------------
ne kadar yatarsan yata
sevdiein kadardyr ?mrün :(
--------------------------------------------------

解决方案

Hi,

Then just use a single "&".

"&" isn''t a special character in Regular Expressions.

--
Dave Sexton

"inpuarg" <in*****@whereland.comwrote in message
news:6r********************************@4ax.com...

>I want to find a & character using Regex. But not &&
How can i manage this in c# Quickfind window ?
--------------------------------------------------
ne kadar yatarsan yata
sevdiein kadardyr ?mrün :(
--------------------------------------------------



ok. ut the problem is , when i ''ve searched for & character it finds
me every && chatacters also. and i ''m not interested in with this.
There are millions of in logical operations. i ''m interested in with
single & .

On Sat, 2 Dec 2006 06:40:06 -0500, "Dave Sexton"
<dave@jwa[remove.this]online.comwrote:

>Hi,

Then just use a single "&".

"&" isn''t a special character in Regular Expressions.

--------------------------------------------------
ne kadar yatarsan yata
sevdiein kadardyr ?mrün :(
--------------------------------------------------


Hi,

Sorry - I misunderstood.

I don''t think that''s possible though. There doesn''t appear to be any
negative look-ahead assertion in VS 2005''s version of Regex:

"Regular Expressions (Visual Studio)"
http://msdn2.microsoft.com/en-us/lib...cs(VS.80).aspx

--
Dave Sexton

"inpuarg" <in*****@whereland.comwrote in message
news:iu********************************@4ax.com...

ok. ut the problem is , when i ''ve searched for & character it finds
me every && chatacters also. and i ''m not interested in with this.
There are millions of in logical operations. i ''m interested in with
single & .

On Sat, 2 Dec 2006 06:40:06 -0500, "Dave Sexton"
<dave@jwa[remove.this]online.comwrote:

>>Hi,

Then just use a single "&".

"&" isn''t a special character in Regular Expressions.

--------------------------------------------------
ne kadar yatarsan yata
sevdiein kadardyr ?mrün :(
--------------------------------------------------



这篇关于找到&amp;替换问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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