# Count \* in comment field to put in rating field

**URL:** https://community.mp3tag.de/t/count-in-comment-field-to-put-in-rating-field/13997
**Category:** Support
**Created:** [October 14, 2012, 9:58pm UTC](https://community.mp3tag.de/t/count-in-comment-field-to-put-in-rating-field/13997 "2012-10-14T21:58:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sogree](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@Sogree](https://community.mp3tag.de/u/Sogree)
#### Post date: [October 14, 2012, 9:58pm UTC](https://community.mp3tag.de/t/count-in-comment-field-to-put-in-rating-field/13997/1 "2012-10-14T21:58:20Z")

</div>

I would like to ‘format/fill in’ the (winamp?) rating field based on information stored in my comment field.

All my comment fields now list different ratings in this format (4 examples):

\*\*\*&v or \*\*\*\*\*t or \*\*r or \*&c

The number of stars (max 5) represent the star-rating I would like to put in the Winamp rating field. So a \*\*\*t would get a 3 star rating.

So basically the ‘format field’ action should count the number of \* and fill in the corresponding number in the rating field.

My question: What ‘format string’ do I use for the ‘rating Winamp’ field? I checked the scripting page and used the search function but there is nothing related to counting.

---

<div class="post-metadata">

### Author: ![Sogree](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@Sogree](https://community.mp3tag.de/u/Sogree)
#### Post date: [October 14, 2012, 10:35pm UTC](https://community.mp3tag.de/t/count-in-comment-field-to-put-in-rating-field/13997/2 "2012-10-14T22:35:56Z")

</div>

This does the trick:

%comment%$strrchr(\*,%comment%)

Except for .flac files..... any tip?

---

<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:24pm UTC](https://community.mp3tag.de/t/count-in-comment-field-to-put-in-rating-field/13997/3 "2026-02-09T12:24:07Z")

</div>


