# Use of # followed by number is turned into a tag by Obsidian

**URL:** <https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099>\
**Category:** Bug graveyard\
**Tags:** tags\
**Created:** [May 6, 2022, 9:39pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099 "2022-05-06T21:39:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [May 6, 2022, 9:39pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/1 "2022-05-06T21:39:21Z")

</div>

Import or copy paste of a file that includes a hashtag followed by a number is added as a tag in the Tag Pane. But Obisidan makes it clear that you cannot create a tag that starts with a number. So why does it create tags when it sees “hand plane #5” or “apt #23” or “invoice #3553449”?

It is an awful lot of cleanup, and trickly as well. One really has to do it outside Obsidian with regex to ensure that only the # followed by a digit are being replaced with “#”.

### Steps to reproduce

paste this in a note:  
Progress through #100-, #150- and #220-grit paper on your sanding block, then sand with a folded piece of #220-grit paper to hug the curves. Finally, give everything a good once over with #320-grit for an almost glass-like surface and you’re done.

### Expected result

Either the # should auto be escaped with #, or it should remain but not count as a tag in the Tag window, given that a tag cannot begin with a number.

### Actual result

Tags are created in the tag pane for:  
#100-  
#150-  
#220-grit  
#220-grit  
#320-grit

### Environment

- Operating system: Win11

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 6, 2022, 9:49pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/2 "2022-05-06T21:49:53Z")

</div>

> [@Lise](#):
>
> But Obisidan makes it clear that you cannot create a tag that starts with a number.

that’s not what the help site says.

> So why does it create tags when it sees “hand plane #5” or “apt #23” or “invoice #3553449”

It doesn’t.

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [May 6, 2022, 10:08pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/3 "2022-05-06T22:08:44Z")

</div>

So I’m a liar? I imagined removing those tags not 10 minutes ago?

Sometimes your replies are so incredibly rude I can’t even imagine what goes through your mind.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 6, 2022, 10:11pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/4 "2022-05-06T22:11:27Z")

</div>

Sorry for the dry response. Let me try again.,  
[https://help.obsidian.md/How+to/Working+with+tags](https://help.obsidian.md/How+to/Working+with+tags)

Here it says:

> Numbers are allowed in the tag, as long as the tag is not purely numeric.

I tried hand plane #6, apt #23 and so on and they are not recognized as tags.

I

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [May 6, 2022, 10:13pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/5 "2022-05-06T22:13:53Z")

</div>

![image](https://forum.obsidian.md/uploads/default/original/3X/1/3/13dc9047c011b7174159f67906d0003c237df172.png)

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [May 6, 2022, 10:15pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/6 "2022-05-06T22:15:18Z")

</div>

Ok, these examples have an additional character. Bad example. I’ll keep a lookout because I’m quite certain I removed a bunch of #23 that were apt numbers.

---

<div class="post-metadata">

**Author:** ![pshev](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/5f9b8f/32.png) [@pshev](https://forum.obsidian.md/u/pshev)\
**Post date:** [May 7, 2022, 11:53am UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/7 "2022-05-07T11:53:12Z")

</div>

The problem happens when it involved hexadecimal numbers. For example, if you like a color from some css file and enter #00FFFF or some such hex number it is turned into a tag. You have to remember to put it into some “code” block or such. But if you are downloading a page from the browser with markdownload that has a lot of hex numbers, it is a huge pain to clean up…

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 7, 2022, 1:06pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/8 "2022-05-07T13:06:10Z")

</div>

you are describe another issue, and I invite to open a FR for that.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 13, 2022, 2:54pm UTC](https://forum.obsidian.md/t/use-of-followed-by-number-is-turned-into-a-tag-by-obsidian/37099/9 "2022-10-13T14:54:28Z")

</div>

Archived on October 13, 2022, 2:54pm UTC


