将文件中的最后一位MAC地址编辑为f

时间:2016-04-30 09:31:22

标签: ip notepad++

我希望在f

中编辑包含MAC地址的文件

实施例

    <accessPointMeasurement mac="xx:xx:xx:xx:xx:xx"/>

    <accessPointMeasurement mac="xx:xx:xx:xx:xx:xf"/>

我已经尝试在网站上查看如何操作并且只能选择MAC地址,但我无法完成更改最后一部分的最后部分。有几千个,需要一种方法来同时改变它们。

有人可以帮忙吗?

谢谢

1 个答案:

答案 0 :(得分:0)

怎么样:

  • CTLR + ħ
  • 找到:(?<=<accessPointMeasurement mac="[^"]{16})f
  • 替换为:Whatever you want to replace the f
  • 全部替换

(?<= ... )被称为lookbehind,它是一个零长度断言。

相关问题