about RegExp

1) I think that is the best method. If you can come up with another that will keep the managed and native enums in sync better, then go for it. By the way, you can usually use a single find and replace with a regular expression to do this. Something like this:

The search string is ^{:b*}{[a-zA-Z0-9_]+}[^a-zA-Z0-9_].*$
The replace string is \1\2 = DeviceManager\:\:AParameter\:\:\2,

posted on 2008-03-26 11:12  SunWentao  阅读(143)  评论(0编辑  收藏  举报