开发者

Need a regular expression for wpf lostfocus events

I need to remove all lost focus events from a very large xaml file. I am planning to do this by finding and replacing (ctrl + H) all lost focus events by an empty s开发者_运维知识库tring e.g.

replace

LostFocus="txtSampleLostFocus"

with

"" -> Empty String.

To do this I want to create a regular expression that will match my lost focus events' signature and then replace them all. Is that even possible? If yes what will be the regular expression that I will need to use?

EDIT

Naming pattern starts with LostFocus=" and has text in between (a-z, 0-9) and ends with "


Use this expression: LostFocus=:q :q - is a predefined class for quoted string in VS search and replace.


Use this regex: LostFocus="[a-zA-Z0-9]+" or LostFocus="[^"]+".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜