I have a question about converting regular expression strings

Asked 1 years ago, Updated 1 years ago, 57 views

Service, suction, sousand,... I want to convert only 만 in front of a short vowel from a string containing ㅅ such as 이. The Korean alphabet has already been written in Korean, but is there any way to convert the string including the pattern? re.sub(r"/s?(g)[ㅓㅜ-ㅣ-ㅐ",]", ???, str. <=== I don't know the question mark part. If it is not possible with submethod, should we use match to divide the group and change it?

regex python

2022-09-22 20:20

1 Answers

I don't think I can do it on a regular show I think I need to find the Unicode number and change it The Unicode system is complete Korean, but I know that the system was created to facilitate the decomposition of the combination The code number of syllables = a × number of neutral × number of final consonants + b × number of final consonants + c In the same format as above. The Unicode number of "Sa" is C0AC and the number of "Ssa" is C2F8. Considering the above equation, I think it will be the same offset in the electronic jam that contains 과 and 이 I think you can offset the character that contains 이 to a certain value using Ch and order

In Unicode, many Korean assignments are posted on the Internet

There may be an easier way, but this is all I can think of


2022-09-22 20:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.