# Regexpreplace '.\*' 'OK' matches twice

**URL:** https://community.mp3tag.de/t/regexpreplace-ok-matches-twice/62436
**Category:** Web Sources Discussion
**Created:** [October 17, 2023, 9:06am UTC](https://community.mp3tag.de/t/regexpreplace-ok-matches-twice/62436 "2023-10-17T09:06:33Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [October 17, 2023, 3:32pm UTC](https://community.mp3tag.de/t/regexpreplace-ok-matches-twice/62436/4 "2023-10-17T15:32:05Z")

</div>

This seems to be the same Problem:

> [@replace with regular expression problem](https://community.mp3tag.de/t/replace-with-regular-expression-problem/3835):
>
> hi, I have a work-around for this, but I don't understand what the problem really is, and why I have solved it. Can anyone teach me? 1- What is being "falsely recognized" in the (.\*) case? 2- Why does [^] start of a line anchor solve the problem? Problem: title: 01 - Love's a Precious Thing One Strange Sunday using replace with regular expression field: title regular expression: (.\*) replace match with: junk $1 Produces: junk 01 - Love's a Precious Thing One St…

---

_[View the full topic](https://community.mp3tag.de/t/regexpreplace-ok-matches-twice/62436)._
