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:

image

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

^\R+
image

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

image

6 Likes

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

2 Likes

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

1 Like