regexp

Jason Orri's icon

Hi guys, is there a way to exclude incoming messages that contain any following characters text "Блог феминистской панк-группы БЕЗУМНЫЕ ДОКУМЕНТЫ И ПОВЫШЕНИЕ СЛЕДОВАТЕЛЯ РАНЧЕНКОВА - the only problem I'm having is that it's not any particular character or phrase - I just want to replace any text that contains russian characters with silence or a message like 'no text'... not sure how regexp can do this. Any ideas would be appreciated.
Bests
J

ShelLuser's icon

I have little experience with such characters but I'm curious: do these characters appear inside common sentences or are you aiming for sentences which only contain Russian characters?

A regexp could do it though I'm not too sure how Max responds to these characters; I assume it won't pick them up as alphanumeric nor decimal, but I'm not sure there. Maybe I can rig a test this evening, could be interesting.

Tim Lloyd's icon
Max Patch
Copy patch and select New From Clipboard in Max.

This might be a starting point? It needs tweaking ...