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,

你可能感兴趣的:(RegExp)