# Search numbers in single line

**URL:** <https://community.mp3tag.de/t/search-numbers-in-single-line/15065>\
**Category:** Support\
**Created:** [September 27, 2013, 1:44pm UTC](https://community.mp3tag.de/t/search-numbers-in-single-line/15065 "2013-09-27T13:44:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![monet60707](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@monet60707](https://community.mp3tag.de/u/monet60707)\
**Post date:** [September 27, 2013, 1:44pm UTC](https://community.mp3tag.de/t/search-numbers-in-single-line/15065/1 "2013-09-27T13:44:08Z")

</div>

Hi,

I'd like to search for a numbers in a single line only e.g.  
"some text, some more text  
123  
some text, some more text  
some text, some more text  
124"

etc.  
For now I came up with this **([^\d]|^)\d{3}([^\d]|$)** but it searches all the 3 digit numbers e.g.  
if the text contains "123 items were purchased" it removes the 123 within the text, which I don't want. I only want to be able to find/remove the 3 digits in single lines, not surrounded by any other text.

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [September 27, 2013, 2:02pm UTC](https://community.mp3tag.de/t/search-numbers-in-single-line/15065/2 "2013-09-27T14:02:28Z")

</div>

Why not ^\d{3}$

---

<div class="post-metadata">

**Author:** ![monet60707](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@monet60707](https://community.mp3tag.de/u/monet60707)\
**Post date:** [September 27, 2013, 3:40pm UTC](https://community.mp3tag.de/t/search-numbers-in-single-line/15065/3 "2013-09-27T15:40:27Z")

</div>

This is exactly what I wanted.  
Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/search-numbers-in-single-line/15065/4 "2026-02-09T12:24:41Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


