[Xerte] Re: replace function returns null?

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue May 7 09:18:53 BST 2013


From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 06 May 2013 11:49
To: Xerte list
Subject: [Xerte] replace function returns null?

myString = 'hello cruel world';
newstring = myString.replace('hello','goodbye');
debug(newstring);  // returns null

What silly thing am I doing?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20130507/0b836949/attachment.html>

More information about the Xerte mailing list