Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# Online Quotation System Pin
Roman Olney21-Mar-08 7:09
Roman Olney21-Mar-08 7:09 
GeneralRe: c# Online Quotation System Pin
Dave Sexton21-Mar-08 7:52
Dave Sexton21-Mar-08 7:52 
GeneralRe: c# Online Quotation System Pin
pmarfleet21-Mar-08 8:23
pmarfleet21-Mar-08 8:23 
GeneralRe: c# Online Quotation System Pin
Paul Conrad21-Mar-08 8:07
professionalPaul Conrad21-Mar-08 8:07 
General[Message Deleted] Pin
Roman Olney21-Mar-08 8:31
Roman Olney21-Mar-08 8:31 
GeneralRe: c# Online Quotation System Pin
Paul Conrad21-Mar-08 9:14
professionalPaul Conrad21-Mar-08 9:14 
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 
I need to be able to parse the following line, I am not even sure regualar expression are
the best option.

LIC#:ABC123 YRMD:03 MAKE:CHEV BTM :CP VIN :1G1JC12F137230800

into

LIC#:ABC123
YRMD:03
MAKE:CHEV
BTM :CP
VIN :1F1JD12F137230735

And then capture the data after the semicolon.

All can be variable length and there isn't a delimiter

Unfortunately, you also can't depend on the tags having no spaces with the colons (i.e. VIN :, vs YRMD:.

I have been trying to use Grouping to parse this.

I am newish to regular expression and thought maybe I should use them to solve this problem.
Are regular expression even a good fit for this problem?
Any suggestions appreciated.

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

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 
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 

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.