正则表达式回车查找和查找在Google文档上替换 [英] Regular Expression Carriage Return Find & Replace on Google Docs

查看:139
本文介绍了正则表达式回车查找和查找在Google文档上替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google文档上,我希望将每个list-item(我的项目符号是一个破折号"-")分开,其中20个左右的文档中有1,000多个通过附加换行.它使在移动设备上阅读变得更加容易.

On Google Docs, I want each list-item (my bullet is an en dash, "-"), of which there are over 1,000 in 20 or so documents, to be separated by an additional line feed. It makes it easier to read on mobile devices.

如何搜索分隔项目符号的换行符,并用两个换行符替换?

How can I search for a line feed delimiting a bullet, and replace it with two line feeds?

(即相当于在Microsoft Word中搜索"^p-"并将其替换为"^p^p-")

(I.e. the equivalent of searching for "^p-" and replacing it with "^p^p-" in Microsoft Word)

推荐答案

对于您的问题,我有些困惑,但是:

I am a little confused about your question, but:

我发现做这样的事情的唯一方法是去找到每个-或空格(Google Docs会找到它们)并插入一个虚拟"字符.

I found the only way to do something like this is to go to find each - or space (which Google Docs will find) and insert a "dummy" character.

然后进行搜索并替换为, 然后复制所有内容,删除所有内容,进入html模式并粘贴.

Then do a search and replace with , Then copy all, delete all, go to the html mode and paste it.

返回普通视图,每个视图之后都应有一个多余的空间.

Go back to normal view and you should have an extra space after each.

如果您尝试执行此操作: (即相当于在Microsoft Word中搜索"^ p-"并将其替换为"^ p ^ p-")

If you are trying to do this: (I.e. the equivalent of searching for "^p-" and replacing it with "^p^p-" in Microsoft Word)

转到html模式,找出哪个标签引起换行,(可以是div标签或br标签(我无法显示标签字符<>来显示)),将其复制并返回正常模式下,全部粘贴,使用复制并替换其中的任何内容(br或div),将它们复制,删除,粘贴回html中,这样就应该有多余的换行符.希望对您有所帮助.

Go to html mode, and find out which tag is causing the line break, (could be div tag or a br tag (I can't get the tag characters <> to show), copy it, go back to normal mode, paste all,use copy and replace on whatever it was (br, or div) with two of them, copy, delete, paste back in html, and you should have the extra line break. Hope that helps.

这篇关于正则表达式回车查找和查找在Google文档上替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆