Forums > MaxMSP

regexp

June 27, 2012 | 12:32 pm

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


June 27, 2012 | 1:42 pm

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.


June 28, 2012 | 8:17 am

This might be a starting point? It needs tweaking …

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)