Right, you could easily make it conditional, but the regex approach is simpler.
- jason
On Mon, Jul 6, 2009 at 3:02 PM, Brad Lindsay<
blindsay@...> wrote:
> On Jul 6, 2009, at 2:37 PM, Jason Huck wrote:
>>
>> That's more of a general javascript question. It should be something like
>> this:
>>
>> var mystring = 'foooobaaaaarrrrr&';
>> mystring = mystring.substr(0, mystring.length - 2);
>
> As an FYI, this will always remove the last character of the string while my
> solutions only remove the character if it's an ampersand.
>
> -Brad
>
> --
> This list is a free service of LassoSoft:
http://www.LassoSoft.com/> Search the list archives:
http://www.ListSearch.com/Lasso/Browse/> Manage your subscription:
http://www.ListSearch.com/Lasso/>
>
>
--
tagSwap.net :: Open Source Lasso Code
<
http://tagSwap.net/>
--
This list is a free service of LassoSoft:
http://www.LassoSoft.com/Search the list archives:
http://www.ListSearch.com/Lasso/Browse/Manage your subscription:
http://www.ListSearch.com/Lasso/