Jump to content

Insert Dash when the code has 4 digits or 4 letters in a row


Recommended Posts

I have another question about the insert of a dash-sign (-) in a code of 7 characters.


That is if there is a way to search for 4 digits or for letters in a row (could be any digits or letters) and when so to separate them in 2 parts of two with a dash in between.


Examples of such codes to be changed:


12-ABCD changed into 12-AB-CD

ABCD-12 changed into AB-CD-12

1234-AB changed into 12-34-AB

AB-1234 changed into AB-12-34


Help will be much appreciated!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...