Inserting text between

I have most of a shortcut together, but I can't figure out how to insert a character in the middle of copied text. I need to quickly generate a URL from a copied bit of text.

For example, I have a field with a name. We'll use John Smith. I copy that name and add the first part of the URL by inserting text. I need the copied text (John Smith) to have a hyphen between first and last name (John-Smith) when I paste it into the last part of the URL.

Is there any way to do this?

Hello! Welcome to the forum!

Assuming that your text “John Smith” is on the clipboard and you want it to be “John-Smith” when you paste it, you’d probably be best off using “Search and Replace”.

For the “Search for” string you would enter a space, and for the “replace with” string you’d enter a dash.

(Presumably if you had a name like “Mary Tyler Moore” you’d want it to be “Mary-Tyler-Moore”.)

Let us know if you have more questions or run into any snags. We’re a fairly friendly group here :wink:

1 Like

This worked perfect! Thank you!

1 Like