# Copying and pasting a tag that ends in a number with leading zeroes should preserve the leading zeroes

**URL:** <https://forum.inductiveautomation.com/t/copying-and-pasting-a-tag-that-ends-in-a-number-with-leading-zeroes-should-preserve-the-leading-zeroes/62529>\
**Category:** Ignition\
**Created:** [August 1, 2022, 5:59am UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-a-tag-that-ends-in-a-number-with-leading-zeroes-should-preserve-the-leading-zeroes/62529 "2022-08-01T05:59:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [August 1, 2022, 5:59am UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-a-tag-that-ends-in-a-number-with-leading-zeroes-should-preserve-the-leading-zeroes/62529/1 "2022-08-01T05:59:45Z")

</div>

This would be a nice QOL feature that would streamline creating tags with this structure. If I have Thing01 and I copy paste it, I don’t want that to be Thing1, I want it to be Thing02.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/0/d04052c0e30589c74993b7ad38c53a2ada0674d8.png)

---

<div class="post-metadata">

**Author:** ![Fadil\_Shaikh](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@Fadil\_Shaikh](https://forum.inductiveautomation.com/u/Fadil_Shaikh)\
**Post date:** [October 14, 2022, 11:08pm UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-a-tag-that-ends-in-a-number-with-leading-zeroes-should-preserve-the-leading-zeroes/62529/2 "2022-10-14T23:08:05Z")

</div>

Hi @michael2, can you provide information in regards to the use case/motivation of this? It would better help understanding the purpose of this feature request. Thank you.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 15, 2022, 6:49am UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-a-tag-that-ends-in-a-number-with-leading-zeroes-should-preserve-the-leading-zeroes/62529/3 "2022-10-15T06:49:31Z")

</div>

> [@Fadil\_Shaikh](#):
>
> ... the use case/motivation ...

For one, it would preserve sort order. `Thing09` would appear in the tag browser before `Thing10`. Another might be that that's the way the machines are numbered.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 15, 2022, 6:52am UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-a-tag-that-ends-in-a-number-with-leading-zeroes-should-preserve-the-leading-zeroes/62529/4 "2022-10-15T06:52:31Z")

</div>

Let's say you have 37 similar tags to create.  
You want them named `foo01` to `foo37`.  
So, you create one, call it `foo01`, and configure it. Then you copy and paste it.  
now, instead of `foo01` and `foo02`, you have `foo01` and `foo1`. Another paste will give you `foo2`. etc.  
It would be more convenient if the pasted tags would keep the number formatting and go from there, and give you `foo02` instead of `foo1`, `foo03` instead of `foo2`... etc so you don't have to rename them all.

It's just a small QoL improvement, as you could just use `system.tag.configure` in a script and generate the appropriate names easily, but, you know... I never understood why pasting a tag would keep the base name and replace my `01` with `1`. I fail to see the logic that was applied in naming this copy.

---

<div class="post-metadata">

**Author:** ![Michael.Smith](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Michael.Smith](https://forum.inductiveautomation.com/u/Michael.Smith)\
**Post date:** [October 16, 2022, 10:04pm UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-a-tag-that-ends-in-a-number-with-leading-zeroes-should-preserve-the-leading-zeroes/62529/5 "2022-10-16T22:04:08Z")

</div>

@Fadil_Shaikh Pascal has covered it perfectly. FYI, I am michael2. Got a new account.
