Regular Expression Carriage Return Find & Replace on Google Docs

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 03:28:54

问题


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?

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


回答1:


I am a little confused about your question, but:

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.

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.

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

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.



来源:https://stackoverflow.com/questions/1200199/regular-expression-carriage-return-find-replace-on-google-docs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!