HanTranslate
Member
- Sep 28, 2022
- 135
- 186
- 119
it should be. paste this code to options-->custom escaperIs it possible to skip lines like create_lily_character
/(if|en)\([\w \=\[\]\&<\>\|\.\$\_\+\-\*\/\@\!]+\)/gi,
/(\\[a-zA-Z0-9]+\[.*?\])+/gi,
/(\\[a-zA-Z0-9]+<.*?\>)+/gi,
/(\\[a-zA-Z\{\}\\\$\.\|\!\><\^])+/gi,
/(\@[0-9]+)+/gi,
/(?<=\{)(.*?)(?=\})/gi,
/(?<=\[)(.*?)(?=\])/gi,
/(?<=<)(.*?)(?=>)/gi,
/((#|%)+\w+)|(\w+(#|%)+)|((#|%)+\([a-zA-Z]+\))+/gi,
/(\w+_\w+)|(_+\w+)|(\w+_)/gi,
/(?<=\{)(.*?)(?=\})/gi,
/(?<=\[)(.*?)(?=\])/gi,
/(?<=<)(.*?)(?=>)/gi,
/((#|%)+\w+)|(\w+(#|%)+)|((#|%)+\([a-zA-Z]+\))+/gi,
/(\w+_\w+)|(_+\w+)|(\w+_)/gi,
/[a-zA-Z\/\\\=\_0-9]+(\.)+(ttf|otf|png|mp3|mp4|ogg|wav|jpg|webm|avi|webp)/gi,
function(currentText) {
return ["string to escape", "string to escape 2"]
},
"literal string"