#1 : 24/03-21 16:57
I would like to know if it is possible to make a script that can put text, or symbol between say a unicode character such as chinese, japanese or korean characters and english text, and if anyone are able to do it
in other words "， " inserted between every spacing between chinese, japanese, korean script and english such as this:
武士马拉松 Samurai Marathon
小さな恋のうた Little Love Song
武士马拉松， Samurai Marathon
小さな恋のうた， Little Love Song
Thanks in advance
#2 : 24/03-21 19:06
You don't need a script - just use a Replace method with a Regular Expression...
Replace: ([^a-z]*)( .*)
NOT Case sensitive
CHECK Use regular expressions
#3 : 24/03-21 19:18
Reply to #2:
Thank you a lot, I can't say I understand exactly how it works but it seems to work fine, I was afraid the "," would end up elsewhere as well, between letters or anywhere where there is a space
I use the software very often and for several years but not "deep" like this
#4 : 24/03-21 20:07
Reply to #3:
"[^a-z]" matches any character except those in the range "a to z" - the "^" character signifies "NOT"
Adding "*" (ie "[^a-z]*" ) matches a string of any number of such characters.
Placing the expression in parentheses captures the result in a variable: "\1"
"." represents any character - so similarly "( .*)" will capture the remaining string of any characters beginning with a space and save it in the variable "\2"
The replacement string \1,\2 simply places a comma between the two parts of the filename.
check out the User Guide at
Actually a better solution probably would be...
This will match a string of any non-ascii characters and add a comma.
Replace: ([^ - ~])
which will mask a string comprising non-printable ascii characters
24/03-21 20:07 - edited 24/03-21 20:08