# Format Value RegExp Inconsistency (with Notepad++)

**URL:** <https://community.mp3tag.de/t/format-value-regexp-inconsistency-with-notepad/17120>\
**Category:** Support\
**Created:** [August 2, 2015, 9:35pm UTC](https://community.mp3tag.de/t/format-value-regexp-inconsistency-with-notepad/17120 "2015-08-02T21:35:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)\
**Post date:** [August 2, 2015, 9:35pm UTC](https://community.mp3tag.de/t/format-value-regexp-inconsistency-with-notepad/17120/1 "2015-08-02T21:35:51Z")

</div>

I frequently use the regular expression #[^#]\*$ to select the last occurrence of a character in a string and beyond (in this case the character would be #). This regexp doesn't seem to work with the Format Value expression.

The above Topic Description is a simplification ... my issue is that I have titles for podcasts that are too long, so I want to chop them down to size, splitting at a word boundary.

T=5  
F=TITLE  
1=$if($eql(%album%,'The John Batchelor Show'),$regexp($left(%title%,80),\\s[^\\s]\*$,),%title%)

Thx.

rko

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [August 3, 2015, 12:54am UTC](https://community.mp3tag.de/t/format-value-regexp-inconsistency-with-notepad/17120/2 "2015-08-03T00:54:07Z")

</div>

> [@rko31415](#):
>
> ... regexp doesn't seem to work with the Format Value expression. ... my issue is that I have titles for podcasts that are too long, so I want to chop them down to size, splitting at a word boundary.  
> T=5  
> F=TITLE  
> 1=$if($eql(%album%,'The John Batchelor Show'),$regexp($left(%title%,80),\\s[^\\s]\*$,),%title%)

**$left($left(%TITLE%,80),$sub($strrchr($left(%TITLE%,80),' '),1)) ... or ... $regexp($left(%TITLE%,80),'\s[^\s]\*$',) From: 'The Wonders At Your Feet' To : 'The Wonders At Your' $regexp('jeorge jones','j[^j]\*$',) From: 'jeorge jones' To : 'jeorge '**

Read ...  
[https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting)  
Characters with special functionality

DD.20150803.0515.CEST

---

<div class="post-metadata">

**Author:** ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)\
**Post date:** [August 3, 2015, 12:31pm UTC](https://community.mp3tag.de/t/format-value-regexp-inconsistency-with-notepad/17120/3 "2015-08-03T12:31:29Z")

</div>

Sorry, I should have remembered that.  
It worked.

rko

---

<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:25pm UTC](https://community.mp3tag.de/t/format-value-regexp-inconsistency-with-notepad/17120/4 "2026-02-09T12:25:48Z")

</div>

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


