加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Notepad++替换每行开头字符

发布时间:2020-12-14 01:24:34 所属栏目:百科 来源:网络整理
导读:出处:http://www.jb51.cc/article/p-xtwmmmkz-beq.html I've had the same issue myself. After some trial and error you can achieve the same by doing the following: Find: ^(.) Replace: [the string you wish you insert] /1 What this will do is l

出处:http://www.52php.cn/article/p-xtwmmmkz-beq.html

I've had the same issue myself. After some trial and error you can achieve the same by doing the following:

Find:^(.)

Replace:[the string you wish you insert]/1

What this will do is locate and tag the first character of the line,put in the new string and put the tagged character after it.

For example,I needed to insert a single quote at the start of each line:

Replace:'/1

You can do the same for the end of the line by doing:

Find:(.)$

Replace:/1*[the string you wish to append]*

另外有一个http://a4apphack.com/featured/tricks-with-notepad链接非常实用

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读