# Regex Replace unexpected match

**URL:** https://community.mp3tag.de/t/regex-replace-unexpected-match/53888
**Category:** Support
**Created:** [July 28, 2021, 10:00pm UTC](https://community.mp3tag.de/t/regex-replace-unexpected-match/53888 "2021-07-28T22:00:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 29, 2021, 4:28am UTC](https://community.mp3tag.de/t/regex-replace-unexpected-match/53888/2 "2021-07-29T04:28:46Z")

</div>

See this thread:

> [@\[X\] $regexp(X,.\*$,YY)](https://community.mp3tag.de/t/x-regexp-x-yy/6261):
>
> [EDITED:] ... returns YYYY rather than YY as documented.

---

_[View the full topic](https://community.mp3tag.de/t/regex-replace-unexpected-match/53888)._
