乘以特定行的值
我是编程新手,但我需要解决这个问题..
我正在使用记事本++,并且我有一个重复1000次的特定行,并且每个行都有不同的值..其中一个看起来像这样:
wp_galpha=(0.2519)
我需要的是通过乘以..例如0.90来减少括号中的数字,那么是否可以在不手动执行的情况下更改(乘以)每个wp_galpha值?提前致谢
I am a noob in programming but I need to work this out..
I am using notepad++, and I have a specific line which repeats 1000s times, and each has a different value.. One of them looks like this:
wp_galpha=(0.2519)
what I need is to reduce the number in brackets by multiplying with.. for example 0.90, so is it possible to change (multiply) every wp_galpha value without doing it manually? Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能应该将这些行复制到脚本中,然后在脚本中使用带有反向引用的正则表达式,将值替换为相乘的值。不要认为这可以直接在编辑器中实现。但我可能是错的,因为我不知道记事本++。
You probably should copy those lines into a script and then use regular expressions with back references in your script to replace your values with the multiplied ones. Don't think that this is possible directly in your editor. But I might be wrong as I don't know notepad++.