regexp

Jun 27, 2012 at 12:32pm

regexp

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

#39891
Jun 27, 2012 at 1:42pm

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.

#140654
Jun 28, 2012 at 8:17am

This might be a starting point? It needs tweaking …

– Pasted Max Patch, click to expand. –
#140655

You must be logged in to reply to this topic.