如何在记事本或 Microsoft Word 中删除行首的每个数字?

kir*_*irk 7 windows notepad text-editing microsoft-word

我有一个这样的清单:

1 http://
2 http://
3 http://
4 http://
5 http://
Run Code Online (Sandbox Code Playgroud)

我想删除 1,2,3,4,5 而不为每一行手动执行此操作。我使用的唯一工具是裸 Windows 设置中的记事本。

如何在记事本或 Microsoft Word 中删除它?

use*_*686 13

在 Microsoft Word 中,使用 Replace ( CtrlH) 为:

<[0-9]@ (http)
Run Code Online (Sandbox Code Playgroud)

用。。。来代替:

\1
Run Code Online (Sandbox Code Playgroud)

确保启用“使用通配符”。

  • 天啊,你可以在 Word 中做反向引用吗??!这是在哪里记录的? (2认同)
  • @Gregg:[这里。](http://office.microsoft.com/en-us/support/putting-regular-expressions-to-work-in-word-HA001087304.aspx?CTT=5&amp;origin=HA001087305) (2认同)