# Words Count

**URL:** https://community.mp3tag.de/t/words-count/16029
**Category:** Support
**Created:** [August 19, 2014, 9:49pm UTC](https://community.mp3tag.de/t/words-count/16029 "2014-08-19T21:49:48Z")
**Posts on this page:** 1
**Showing post:** 6

<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 21, 2014, 3:56am UTC](https://community.mp3tag.de/t/words-count/16029/6 "2014-08-21T03:56:22Z")

</div>

> [@MotleyG](#):
>
> Apologies if my original post was vague. In the artist field I wanted to flip FIRSTNAME LASTNAME to LASTNAME, FIRST NAME and also FIRSTNAME MIDDLENAME LASTNAME to LASTNAME, FIRSTNAME MIDDLENAME. ...

Read there ...  
[Regular Expressions](https://community.mp3tag.de/t/521/15)  
[Regular Expressions](https://community.mp3tag.de/t/521/27)  
[Multiple value artist tag to multiple value artistsort](https://community.mp3tag.de/t/12599/1)  
[Need help with regex for ARTISTSORT](https://community.mp3tag.de/t/12653/1)  
[Automating Changes to Artist Values](https://community.mp3tag.de/t/13595/4)

> [@MotleyG](#):
>
> ... The word count function request was to filter the artist field to 2 or 3 word strings in order to try to simply this process, and to run it in larger batches.

Filter for counting "words", which are separated by one or more space characters:

**"$if(%ARTIST%,$add($len($regexp($regexp(%ARTIST%,' +',' '),'[^]',)),1),0)" GREATER 1**

... will display all artists with more than one word.

**"$if(%ARTIST%,$add($len($regexp($regexp(%ARTIST%,' +',' '),'[^]',)),1),0)" IS 3**

... will display all artists with three words.

DD.20140821.0756.CEST

---

_[View the full topic](https://community.mp3tag.de/t/words-count/16029)._
