Re: [AMBER] nab string functions

From: Daniel Roe <daniel.r.roe.gmail.com>
Date: Sun, 15 Jan 2012 19:55:33 -0500

Hi,

NAB string functions are listed on pg. 290 of the AT1.5 manual, and
they still appear to work.

test.nab:
string s, regexp, t;
s="987";
regexp="12";
t="1234";
printf("%s\n",t);
gsub(regexp, s, t);
printf("%s\n",t);

Output:
1234
98734

-Dan

On Sun, Jan 15, 2012 at 7:34 PM, M. L. Dodson <mldodson.comcast.net> wrote:
> Hi,
>
> Writing some nab utility progs.
>
> Several string functions (p292 of AT-1.5 documentation) do not see to be
> there any more, e.g, sub(), gsub(). Is this an error in the docs or in the
> distribution?  Makes it hard to port perl MD utility code to nab.
>
> Thanks,
> Bud Dodson
> --
> M. L. Dodson
> Business email: activesitedynamics-at-gmail-dot-com
> Personal email: mldodson-at-comcast-dot-net
> Gmail: mlesterdodson-at-gmail-dot-com
> Phone: eight_three_two-five_63-386_one
>
>
>
>
>
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber



-- 
-------------------------
Daniel R. Roe, PhD
Postdoctoral Associate
BioMaPS Institute, Rutgers University
610 Taylor Road
Piscataway, NJ   08854
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sun Jan 15 2012 - 17:00:03 PST
Custom Search