[Javascript] thousand separator

Shawn Milo milo at linuxmail.org
Thu Jun 3 16:14:44 CDT 2004


The best resource is "Mastering Regular Expressions", 2nd edition,
by Jeffref Friedl.  It is published by O'Reilly Press.

That's where I learned everything I know.

Shawn


----- Original Message -----
From: Terry Riegel <riegel at clearimageonline.com>
Date: Thu, 3 Jun 2004 16:35:18 -0400
To: "[JavaScript List]" <javascript at LaTech.edu>
Subject: Re: [Javascript] thousand separator

> Does anyone have a recommendation for a regex tutorial. My eyes get 
> blurry when I see code with regular expressions, and I would love to 
> get a grasp of what is going on with it.
> 
> 
> Terry Riegel
> -----------------
> MAILKEY: 2524427349
> 
> 
> 
> 
> On Jun 3, 2004, at 4:22 PM, Shawn Milo wrote:
> > Okay, here's the gravy:
> >                someNum = someNum.replace(/(\d)(\d{3}(\.|,|$))/, '$1' + 
> > strThou + '$2');

>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list