ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

taking line-feeds and end-of-line hypens out of the clipboard text

(1/2) > >>

Steven Avery:
When Abbyy or Screenshot ShareX or some program puts text in the clipboard, I would like to have a simple way to get rid of the line feeds, and also eliminate any hyphens at the end of the lines (before the line feed).

Then when I go to paste into, eg. a forum, I won't have to move around every line.

It looks like this is optionally done by some editors.

I could ask Abbyy or ShareX to give the option as an enehancement.

Any utilities you know that do the job?


Write an .ahk script (and compile it), that removes all hyphens and line breaks with a single regex replace?

--- ---#NoEnv
#SingleInstance Force

^+-:: ; Ctrl+Shift+-
Clipboard := RegExReplace(Clipboard, "(-+)?\r?\n")

You could also trigger a Clipboard Help+Spell preset to copy text under cursor, transform it and repaste it.

Text Monkey or Clippy, see this post: Re: some useful but less-known software. share your list!!!

This is a pretty handy tool: eCleaner (File: Cleaner v2.02 - - as attached)


[0] Message Index

[#] Next page

Go to full version