Forums > MaxMSP

Explaining the mysteries of [regexp]

March 10, 2014 | 4:04 am

This intro to regular expressions might be useful if, like me, you are unfamiliar with them…

http://qntm.org/files/re/re.html


March 10, 2014 | 5:20 am

I always find string formatting frustrating, that’s gonna be really helpful! Thanks!!


March 10, 2014 | 6:05 am

Me too.. thanks David!


March 10, 2014 | 6:42 am

yay, noob friendly regexp tutorial. thanks !


March 10, 2014 | 7:08 am

a question though… the underscore at the end of character class range is not quite explained ?… i mean :
" a word character is \w which is [0-9A-Za-z_] "
i don’t understand why there is an underscore ? why not simply [0-9A-Za-z] ?


March 10, 2014 | 7:33 am

"_" is part of the character class.
Try this:

<code>

– Pasted Max Patch, click to expand. –

</code>


March 10, 2014 | 8:08 am

oh, okay, simply that. But why is it part of "word character" then ?


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