Forums > MaxMSP

Regular Expressions

May 04 2011 | 11:02 am

hey all,

You lot have been amazingly helpful and patient with all my noobish questions, but fraid i have one more. Im looking to use regular expressions to extract specific words from text within a message box.


extracting the word dog, from the sentence: [the dog is fat and lazy]

any guidance on this would be greatly appreciated

many thanks


May 04 2011 | 11:04 am

Thatsa simple: regexp

May 04 2011 | 11:14 am

sorry jvkrm, dont really understand your answer.

May 04 2011 | 11:46 am

There is a regexp object that does regular expressions.

May 04 2011 | 11:48 am

create a new object called [regexp].

then alt+click that object and read the help page.

May 04 2011 | 12:38 pm

Hi Teej,

I’m afraid I don’t understand what you mean by "extracting"… do you want to remove the word, in order to obtain "the is fat and lazy"? Or to know whether your message contains the word "dog"? In both cases, zl (filter / sub) is going to be much easier than regexp. But maybe I didn’t get your question…


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

Forums > MaxMSP