bbepis / XUnity.AutoTranslator

MIT License
2.02k stars 293 forks source link

Help with Regular Expressions #486

Open T-M05 opened 10 months ago

T-M05 commented 10 months ago

50/50\nWood(2)\nLocal Temperature: 18°C=50/50 木材 (2) 現地温度: 18 °C I was thinking of using a regular expression to combine an infinite number of such texts into one when they are generated, but the result did not change, so I would appreciate it if you could let me know.

Here is the regular expression I tried sr:"^(^(\d+)/(\d+)\\nWood\(\d+\)\\nLocal Temperature: (\d+)°C)$"=$1/$2 木材 ($3) 局所温度: $4 °C

Atamg1994 commented 10 months ago

50/50\nWood(2)\nLocal Temperature: 18°C=50/50 木材 (2) 現地温度: 18 °C I was thinking of using a regular expression to combine an infinite number of such texts into one when they are generated, but the result did not change, so I would appreciate it if you could let me know.

Here is the regular expression I tried sr:"^(^(\d+)/(\d+)\\nWood\(\d+\)\\nLocal Temperature: (\d+)°C)$"=$1/$2 木材 ($3) 局所温度: $4 °C

Search this option TemplateAllNumberAway in config and set True

TemplateAllNumberAway=True

T-M05 commented 10 months ago

Thank you. This didn't solve the problem, but I was able to solve it by trying other methods on my own.