Alexandre Quessy wrote:
Hi IOhannes and the list, I am looking (and wrapping) zexy/[regex] and I was wondering if you could add a way to be able to use backslashes. They are very useful in regex, but pretty much forbidden in Pd. Though, I am not sure that they are so useful with POSIX regex, which is what zexy/[regex] uses.(#include <regex.h>) I suggest to use backticks as a backslash replacement, since they are allowed in pd. That is what I have done a little while ago in externals/aalex/pcre.c
An here is how I replace backticks by backslashes. (There are dozens of better ways to do this, of course)
i think it would be better to leave [regex] as it is, and code another external that does replacements on it's own. something like [sed]...
[bi(.*)bo`1\ [92( | | | [symbol `( [makefilename %c] | | | [sed ] |
fmgas.dr IOhannes