# \[F\] Possible regular expression anchor bug

**URL:** https://community.mp3tag.de/t/f-possible-regular-expression-anchor-bug/2608
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [December 9, 2005, 9:36pm UTC](https://community.mp3tag.de/t/f-possible-regular-expression-anchor-bug/2608 "2005-12-09T21:36:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tanwolf](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@tanwolf](https://community.mp3tag.de/u/tanwolf)
#### Post date: [December 9, 2005, 9:36pm UTC](https://community.mp3tag.de/t/f-possible-regular-expression-anchor-bug/2608/1 "2005-12-09T21:36:27Z")

</div>

When I use regular expressions to remove leading and trailing white space, if the field contains any number of '$' characters, half of them will be removed.

For example, "$$$$" becomes "$" and "$$$$$$$$" becomes "$$", because each regular expression removes half of the '$'.

These are the regular expressions I'm using.

"^\s\*" --\> ""  
"\s\*$" --\> ""

I haven't tested this behavior in any other regular expression matching software, but I don't think this is the exprected behavior.

---

<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: [December 12, 2005, 12:49pm UTC](https://community.mp3tag.de/t/f-possible-regular-expression-anchor-bug/2608/2 "2005-12-12T12:49:00Z")

</div>

I hope to fix this to the next release.

Thanks for reporting!

Best regards,  
~ Florian

---

<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: [December 17, 2005, 10:47am UTC](https://community.mp3tag.de/t/f-possible-regular-expression-anchor-bug/2608/3 "2005-12-17T10:47:41Z")

</div>

This bug is now fixed with the latest [Development Build](http://developer.mp3tag.de).

Best regards,  
~ Florian

---

<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: [December 28, 2018, 1:40pm UTC](https://community.mp3tag.de/t/f-possible-regular-expression-anchor-bug/2608/4 "2018-12-28T13:40:35Z")

</div>

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