Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Replace numbers after the . with other numbers Pin
dan!sh 6-Jul-09 23:50
professional dan!sh 6-Jul-09 23:50 
GeneralRe: Replace numbers after the . with other numbers Pin
himanshu25617-Jul-09 0:15
himanshu25617-Jul-09 0:15 
GeneralRe: Replace numbers after the . with other numbers Pin
OriginalGriff7-Jul-09 0:20
mveOriginalGriff7-Jul-09 0:20 
GeneralRe: Replace numbers after the . with other numbers Pin
Alan N7-Jul-09 0:01
Alan N7-Jul-09 0:01 
GeneralRe: Replace numbers after the . with other numbers [modified] Pin
Pete O'Hanlon7-Jul-09 0:19
mvePete O'Hanlon7-Jul-09 0:19 
GeneralRe: Replace numbers after the . with other numbers Pin
dan!sh 7-Jul-09 0:32
professional dan!sh 7-Jul-09 0:32 
GeneralRe: Replace numbers after the . with other numbers Pin
Pete O'Hanlon7-Jul-09 0:46
mvePete O'Hanlon7-Jul-09 0:46 
GeneralRe: Replace numbers after the . with other numbers Pin
OriginalGriff7-Jul-09 1:40
mveOriginalGriff7-Jul-09 1:40 
Pete O'Hanlon wrote:
This version of the code prevents you from incorrectly grabbing items such as A.1234 or the like.


Um, no it doesn't - you need to replace the '*' with a '+' or it matches 0 digits.
Regex regex = new Regex(    @"(((?<Start>-?)(?<Part>\d+))(\.\d{4}))",    
   RegexOptions.IgnoreCase | 
   RegexOptions.Multiline | 
   RegexOptions.IgnorePatternWhitespace | 
   RegexOptions.Compiled );


No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

GeneralRe: Replace numbers after the . with other numbers Pin
Pete O'Hanlon7-Jul-09 1:53
mvePete O'Hanlon7-Jul-09 1:53 
Questionhow to create controls @ run time? Pin
CoderForEver6-Jul-09 20:21
CoderForEver6-Jul-09 20:21 
AnswerRe: how to create controls @ run time? Pin
DaveyM696-Jul-09 22:22
professionalDaveyM696-Jul-09 22:22 
JokeRe: how to create controls @ run time? Pin
Rajesh R Subramanian7-Jul-09 0:01
professionalRajesh R Subramanian7-Jul-09 0:01 
GeneralRe: how to create controls @ run time? Pin
PandemoniumPasha7-Jul-09 0:38
PandemoniumPasha7-Jul-09 0:38 
GeneralRe: how to create controls @ run time? Pin
Pete O'Hanlon7-Jul-09 0:58
mvePete O'Hanlon7-Jul-09 0:58 
GeneralRe: how to create controls @ run time? Pin
CoderForEver7-Jul-09 1:48
CoderForEver7-Jul-09 1:48 
GeneralRe: how to create controls @ run time? Pin
DaveyM697-Jul-09 2:04
professionalDaveyM697-Jul-09 2:04 
Questiondetect bluetooth device Pin
nithydurai6-Jul-09 19:56
nithydurai6-Jul-09 19:56 
AnswerRe: detect bluetooth device Pin
Henry Minute6-Jul-09 23:07
Henry Minute6-Jul-09 23:07 
QuestionClient And Server Chat Pin
tamir9016-Jul-09 19:50
tamir9016-Jul-09 19:50 
AnswerRe: Client And Server Chat Pin
PandemoniumPasha6-Jul-09 20:01
PandemoniumPasha6-Jul-09 20:01 
GeneralRe: Client And Server Chat Pin
tamir9016-Jul-09 20:09
tamir9016-Jul-09 20:09 
GeneralRe: Client And Server Chat Pin
PandemoniumPasha6-Jul-09 21:59
PandemoniumPasha6-Jul-09 21:59 
GeneralRe: Client And Server Chat Pin
tamir9016-Jul-09 22:18
tamir9016-Jul-09 22:18 
Questionstructure and generic collection use with example Pin
engg_sukreet6-Jul-09 19:20
engg_sukreet6-Jul-09 19:20 
AnswerRe: structure and generic collection use with example - TROLL Pin
Mycroft Holmes6-Jul-09 19:44
professionalMycroft Holmes6-Jul-09 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.