[thelist] regexp replace?

Tom Dell'Aringa pixelmech at yahoo.com
Wed Jun 19 18:36:01 CDT 2002


Sorry, in JavaScript!

so "s/-//g" is the match right? is that saying find "-" globally? Then how can I replace it?

Tom
--- Hassan Schroeder <hassan at webtuitive.com> wrote:
> Tom Dell'Aringa wrote:
> >
> > I've never done any regular expressions before - I was wondering if there was a "simple" way
> to
> > take a string like a SSN and strip the "-" out..
>
> ? What language are you using? Most programming languages have a
> simple character replace function along the lines of (Java here)
>
>    String newSSNString = originalSSNString.replace('-', '');
>
> HTH!
> --
> H*
> Hassan Schroeder ----------------------------- hassan at webtuitive.com
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>     -- creating dynamic Web sites and applications since 1994 --
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !


=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the thelist mailing list