# Splitting a title with mixed English and non-English

**URL:** https://community.mp3tag.de/t/splitting-a-title-with-mixed-english-and-non-english/49284
**Category:** Support
**Created:** [June 12, 2020, 7:09am UTC](https://community.mp3tag.de/t/splitting-a-title-with-mixed-english-and-non-english/49284 "2020-06-12T07:09:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sivaram2](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sivaram2/32/7242_2.png) [@sivaram2](https://community.mp3tag.de/u/sivaram2)
#### Post date: [June 12, 2020, 7:09am UTC](https://community.mp3tag.de/t/splitting-a-title-with-mixed-english-and-non-english/49284/1 "2020-06-12T07:09:57Z")

</div>

Suppose I have song title in which the first part is in English and then the second part is title within the song's language. So like "I'm Watching a Loneliness Just Arisen 나는 새롭게 떠오른 외로움을 봐요", where the first half is English and the second half is the Korean name.

Is there a $regexp formula I can use so that I can capture group the English part and then the Korean part? I want to move the Korean part to the %title% tag and then the English part to the %titlesort% tag.

As per the example I mentioned above, I know that the language switch happens with a whitespace (\s) in the middle. 🙂

Appreciate the help in advance!

---

<div class="post-metadata">

### Author: ![Crissov](https://community.mp3tag.de/user_avatar/community.mp3tag.de/crissov/32/6619_2.png) [@Crissov](https://community.mp3tag.de/u/Crissov)
#### Post date: [June 12, 2020, 8:15am UTC](https://community.mp3tag.de/t/splitting-a-title-with-mixed-english-and-non-english/49284/2 "2020-06-12T08:15:14Z")

</div>

Will it always be two different scripts, not just languages? Can the English part contain diacritic marks like accents and umlauts?

---

<div class="post-metadata">

### Author: ![sivaram2](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sivaram2/32/7242_2.png) [@sivaram2](https://community.mp3tag.de/u/sivaram2)
#### Post date: [June 12, 2020, 8:30am UTC](https://community.mp3tag.de/t/splitting-a-title-with-mixed-english-and-non-english/49284/3 "2020-06-12T08:30:10Z")

</div>

Great question! For simplicity’s sake, yes, let’s consider the case where the first language uses Latin script and the second language uses something non-Latin. So yeah, this could cover Korean, Japanese, Hindi, etc.

---

<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: [June 12, 2020, 8:54am UTC](https://community.mp3tag.de/t/splitting-a-title-with-mixed-english-and-non-english/49284/4 "2020-06-12T08:54:07Z")

</div>

`$regexp(%title%,'[^\x00-\x7F]+',)`  
leaves the ASCII part  
`$regexp(%title%,'[\x00-\x7F]+',)`  
gives the non-ascii part.

So an action of the type "Guess value" could work:  
Source pattern: `$regexp(%title%,'[^\x00-\x7F]+',)===$regexp(%title%,'[\x00-\x7F]+',)`  
Target string: %titlesort%===%title%

---

<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: [August 4, 2022, 11:48pm UTC](https://community.mp3tag.de/t/splitting-a-title-with-mixed-english-and-non-english/49284/5 "2022-08-04T23:48:08Z")

</div>

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