Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text


Thread Tools Search this Thread Display Modes
Old January 30th, 2019, 03:53 AM
macfan55 macfan55 is offline
Junior Community Member
Join Date: Apr 2011
Location: Netherlands - Emmen
Posts: 37
Default Insert Dash when the code has 4 digits or 4 letters in a row

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!
Reply With Quote

dash, digits, separate, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 12:05 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.