Delete first two characters of the clipboard?

  1. Is there a way to delete the first two characters of the system clipboard?

  2. Alternatively, I can use search-replace for my current needs, but it replaces all instances of that text. I would need to replace only the first replace, which I have not figured out either.

The text I am trying to remove is two newlines, that appears at the start of my system clipboard.

Yes, you can use the Substring of Variable or Clipboard action to delete just the first two characters:


If you prefer search-replace, you can specify that the search only erase newline characters from the start with regex:


But the simplest solution might just be to use the Trim Whitespace filter:



I was thinking option #2, but appreciate you sharing the substring and filter methods :slight_smile:


Thank you! I have settled for the filter method with Trim whitespace and it works great.

1 Like