# Sayregexp separator defaults to space

**URL:** https://community.mp3tag.de/t/sayregexp-separator-defaults-to-space/70660
**Category:** Web Sources Discussion
**Created:** [February 9, 2026, 7:23pm UTC](https://community.mp3tag.de/t/sayregexp-separator-defaults-to-space/70660 "2026-02-09T19:23:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yorickausyps](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/f6c823/32.png) [@yorickausyps](https://community.mp3tag.de/u/yorickausyps)
#### Post date: [February 9, 2026, 7:23pm UTC](https://community.mp3tag.de/t/sayregexp-separator-defaults-to-space/70660/1 "2026-02-09T19:23:40Z")

</div>

After wondering for one or two month what's happening in a regular exression I used with a sayregexp command, I was assuming that regular expressions can never be fully understood by normal programmers. But now I found out that sayregexp has an undocumented feature: it's second parameter, the separator, uses a space character as default if it is omitted or set to an empty string of zero length. This means, that the three versions

```auto
sayregexp "a|b|c"
sayregexp "a|b|c" ""
sayregexp "a|b|c" " "

```

are all the same and will separate the matches with a space. Therefore it is not possible to directly concatenate the matches from a sayregexp without a separater between them.  
The same observation had been made by @vkostas already [in sept 2012](https://community.mp3tag.de/t/web-source-sayregexp-blank-separator/13945/2) .  
I don't want to suggest, that sayregexp should be changed, because that would break several existing scripts, including my own one. Instead it would be great, if @Florian could simply change the documentation and add a hint to the space character being used as default separator.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 9, 2026, 7:34pm UTC](https://community.mp3tag.de/t/sayregexp-separator-defaults-to-space/70660/2 "2026-02-09T19:34:28Z")

</div>

Thanks for pointing, and sorry for omitting this crucial piece of information!

> [@yorickausyps](#):
>
> change the documentation and add a hint to the space character being used as default separator.

Done.

---

<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: [April 20, 2026, 9:39am UTC](https://community.mp3tag.de/t/sayregexp-separator-defaults-to-space/70660/3 "2026-04-20T09:39:20Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
