Page 1 of 1

Help with rex and sandr

Posted: Thu Aug 20, 2009 1:54 pm
by barry.marcus
I've implemented this search and replace function:

<sandr "\alpha+~=" "(@suffixproc\\=0,\1)" $inWord>

that turns:

theWord~

into:

(@suffixproc\=0,theWord)

Now I'm trying to figure out the reverse function? That is, what rex expression in a call to sandr would turn

(@suffixproc\=0,theWord)

into

theWord~

Thanks, as usual, for your help.

Help with rex and sandr

Posted: Thu Aug 20, 2009 2:06 pm
by mark
<sandr ">>(@suffixproc\\\=0,=\alpha+)" "\2~" $term>

Help with rex and sandr

Posted: Thu Aug 20, 2009 3:57 pm
by barry.marcus
Thanks