Re: Extract numbers from a string
From: cody (please_dont.spam.deutronium_at_gmx.de)
Date: 05/16/04
- Next message: MAY: "Re: Mouse coordinate"
- Previous message: cody: "Re: Makeing a firewall"
- In reply to: Ryan: "Extract numbers from a string"
- Next in thread: Ryan: "Re: Extract numbers from a string"
- Reply: Ryan: "Re: Extract numbers from a string"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 16 May 2004 20:18:55 +0200
use the regex "[0-9]+" or "\d+" to extract numbers from a given string.
-- cody [Freeware, Games and Humor] www.deutronium.de.vu || www.deutronium.tk "Ryan" <web@balancestudios.com> schrieb im Newsbeitrag news:eE$lTA3OEHA.2088@TK2MSFTNGP10.phx.gbl... > I am trying to write a c# function to extract all numbers out of a string. > What is the easiest way to do this, regular expressions? > > I must account for numbers formatted with or without commas (decimal points > are not important). > > thnx > >
- Next message: MAY: "Re: Mouse coordinate"
- Previous message: cody: "Re: Makeing a firewall"
- In reply to: Ryan: "Extract numbers from a string"
- Next in thread: Ryan: "Re: Extract numbers from a string"
- Reply: Ryan: "Re: Extract numbers from a string"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|