for regexp gurus...
Hi regexp gurus,
is there a simpler/clever way to do that (only one regexp object)?
Maybe I'll improve my regexp knowledge...
many thanks
Matteo
This [regexp] looks for the word "fader" followed immediately by an integer, then a space and finally another number which could be a float or int. It remembers the numbers as backreferences and outputs them as a list. If you want a step by step of what each character is doing then just ask.
lh
Or you could do it the easy way
-A
Many thanks LH and Andrew!
Just another little question about regexp:
is there an expression to substitute 'fader' with whatever word, so that regexp finds only a symbol ('fader', 'slider', 'bing', etc.)?*
Matteo
* for that purpose I was thinking about regexp rather than route.
It seems I found solution by myself... but always open to suggestions
Many thanks again
matteo
Sorry to bother you again, but I don't understand the correct syntax in the example below
many thanks
matteo
The regexp that doesn't work for you will match a /slash/ followed by any positive integer followed by a space followed by any positive number. However the string you are entering doesn't match this format, it has "/MP" in the middle which the regex can't match. You might find it easier downloading [OSC-route] from the CNMAT website instead of writing your own regexps.
lh
many thanks, now regexp is much clearer.
Matteo