[TF] Stripping non alpha numeric
Brought to you by:
kenkeys
|
From: johans at stack.nl (J. v. Selst) - 2003-03-14 07:48:17
|
Hi Mark,
Mark Rogo wrote:
> If I have the variable (e,w,s,n) what is the most efficent way to strip
> the () and , out? I've come up with a couple but I am more that certain
> that they are over blown and clunky.
You can do this with the tr function from tr.tf (see /help tr)
tr("(),", "", "(e,w,s,n)")
>From within a macro, you can call this with $[]
/require tr.tf
/echo $[tr("(),", "", "(e,w,s,n)")]
Ciao,
Johan
|