String replacement

Gary Lee Nelson's icon

I want to make the following replacement in a text message "/" becomes " / "
(surround a slash with spaces).

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson

Leafcutter John's icon

Hi Gary,

I've been doing loads of path things lately so this is a piece of cake!

Max Patch
Copy patch and select New From Clipboard in Max.

Emmanuel Jourdan's icon

On 19 avr. 07, at 13:25, Gary Lee Nelson wrote:

> I want to make the following replacement in a text message "/"
> becomes " / "
> (surround a slash with spaces).

What about regepx?

regexp @re / @substitute " / " should do it.

Cheers,
ej

Gary Lee Nelson's icon

Perfect. Thanks so much. I need to finally learn regexp syntax

On 4/19/07 9:43 AM, "Emmanuel Jourdan" wrote:

> regexp @re / @substitute " / "

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson