Custom escaper
Patterns
I would like to delete audio and other files: mp3 jpg webp png webm
Could someone add the restrictions in the lines below?
/(if|en)\([\w \=\[\]\&<\>\|\.\$\_\+\-\*\/\@\!]+\)/g,
/(\\[a-zA-Z0-9]+\[.*?\])+/gi,
/(\\[a-zA-Z0-9]+<.*?\>)+/gi,
/(\\[a-zA-Z\{\}\\\$\.\|\!\><\^])+/g,
/(\@[0-9]+)+/g,
function(currentText) {
return ["string to escape", "string to escape 2"]
},
"literal string"
I added it as shown below, but the translation includes, it didn't solve my problem.
/(?<=\{)(.*?)(?=\})/gi,
/(?<=\[)(.*?)(?=\])/gi,
/(?<=<)(.*?)(?=>)/gi,
/((#|%)+\w+)|(\w+(#|%)+)|((#|%)+\([a-zA-Z]+\))+/gi,
/(\w+_\w+)|(_+\w+)|(\w+_)/gi,
"\\n",
/[a-zA-Z\/\\\=\_0-9]+(\.)+(ttf|otf|png|mp3|mp4|ogg|wav|jpg|webm|avi|webp)/gi
Thanks in advance...