Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.

How to split English and Chinese characters to different cells

zhanghongtao
5 - Atom

I encounter the data including Chinese and English names in one column, which I want to split to different column, but the length in each line for the Chinese and English is not the same. 

2 REPLIES 2
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

You can use RegEx Tool with the configuration below;

 

Regular Expression: ([a-zA-Z0-9_\s,]+)\s([^a-zA-Z0-9_\s,].*)

Output Method: Parse

 

Then you will get the output as below:

NameName1Name2
Wei, Quan Quan 韦, 泉全Wei, Quan Quan韦, 泉全
Wei, Ting 韦, 婷Wei, Ting韦, 婷
Xue, Hui Jing 薛, 惠菁Xue, Hui Jing薛, 惠菁
Zhang, An Qi 张, 安芪Zhang, An Qi张, 安芪
Zhang, Min 张, 敏Zhang, Min张, 敏
...  
zhanghongtao
5 - Atom

Thank you so much for your help!

Labels
Top Solution Authors