Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# Online Quotation System Pin
led mike21-Mar-08 9:31
led mike21-Mar-08 9:31 
GeneralTrying to parse legacy data with RegEx [modified] Pin
Steve Messer21-Mar-08 5:49
Steve Messer21-Mar-08 5:49 
GeneralRe: Trying to parse legacy data with RegEx Pin
#realJSOP21-Mar-08 6:04
mve#realJSOP21-Mar-08 6:04 
GeneralRe: Trying to parse legacy data with RegEx Pin
Steve Messer21-Mar-08 6:17
Steve Messer21-Mar-08 6:17 
GeneralRe: Trying to parse legacy data with RegEx Pin
PIEBALDconsult21-Mar-08 6:23
mvePIEBALDconsult21-Mar-08 6:23 
GeneralRe: Trying to parse legacy data with RegEx Pin
Steve Messer21-Mar-08 6:35
Steve Messer21-Mar-08 6:35 
GeneralRe: Trying to parse legacy data with RegEx Pin
User 665821-Mar-08 6:23
User 665821-Mar-08 6:23 
GeneralRe: Trying to parse legacy data with RegEx [modified] Pin
Steve Messer21-Mar-08 6:35
Steve Messer21-Mar-08 6:35 
Then what use named groups to get your values?

EDIT:

private void Test9()
{
string original = "LIC#:ABC123 YRMD:03 MAKE:CHEV BTM :CP VIN :1G1JC12F137230800";

Regex r = new Regex(@"[^\ ]+\ *:\ *[^\ ]+");

MatchCollection theMatches = r.Matches(original);

foreach (Match theMatch in theMatches)
{
Console.WriteLine(theMatch.Value);
}
}

modified on Friday, March 21, 2008 12:42 PM

GeneralRe: Trying to parse legacy data with RegEx [modified] Pin
PIEBALDconsult21-Mar-08 7:31
mvePIEBALDconsult21-Mar-08 7:31 
GeneralRe: Trying to parse legacy data with RegEx Pin
Dan Neely21-Mar-08 7:52
Dan Neely21-Mar-08 7:52 
GeneralRe: Trying to parse legacy data with RegEx Pin
Steve Messer21-Mar-08 7:58
Steve Messer21-Mar-08 7:58 
GeneralRe: Trying to parse legacy data with RegEx [modified] Pin
PIEBALDconsult21-Mar-08 8:06
mvePIEBALDconsult21-Mar-08 8:06 
GeneralRe: Trying to parse legacy data with RegEx Pin
ChrisKo21-Mar-08 9:10
ChrisKo21-Mar-08 9:10 
GeneralRe: Trying to parse legacy data with RegEx Pin
PIEBALDconsult21-Mar-08 10:00
mvePIEBALDconsult21-Mar-08 10:00 
GeneralRe: Trying to parse legacy data with RegEx Pin
ChrisKo21-Mar-08 10:57
ChrisKo21-Mar-08 10:57 
GeneralRe: Trying to parse legacy data with RegEx [modified] Pin
Steve Messer21-Mar-08 12:08
Steve Messer21-Mar-08 12:08 
GeneralRe: Trying to parse legacy data with RegEx Pin
PIEBALDconsult21-Mar-08 12:52
mvePIEBALDconsult21-Mar-08 12:52 
GeneralA form from a dll Pin
c6jones72021-Mar-08 3:54
c6jones72021-Mar-08 3:54 
GeneralRe: A form from a dll Pin
darkelv21-Mar-08 4:11
darkelv21-Mar-08 4:11 
GeneralRe: A form from a dll Pin
c6jones72021-Mar-08 4:23
c6jones72021-Mar-08 4:23 
GeneralRe: A form from a dll Pin
c6jones72021-Mar-08 6:14
c6jones72021-Mar-08 6:14 
GeneralnUnit and TDD Pin
#realJSOP21-Mar-08 3:24
mve#realJSOP21-Mar-08 3:24 
GeneralRe: nUnit and TDD Pin
Luc Pattyn21-Mar-08 3:37
sitebuilderLuc Pattyn21-Mar-08 3:37 
GeneralRe: nUnit and TDD Pin
#realJSOP21-Mar-08 4:11
mve#realJSOP21-Mar-08 4:11 
GeneralRe: nUnit and TDD Pin
N a v a n e e t h21-Mar-08 3:39
N a v a n e e t h21-Mar-08 3:39 

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.