Using C# regex to match the following string:
What I've got so far (that isn't working):
Seems that when I modify a group (in this example, with +) it bombs?
Code:
Delivery (CourierID: '' CourierFirstName: '' CourierLastName: '' DeviceAddress: '' EventType: '' ExchangeID: '0' DeliveryRouteCode: '' IsReturn: '' LateReason: '' EntryOverrideReason: '' UnableReason: '' SignedBy: '' Version: '')
What I've got so far (that isn't working):
Code:
var regex = new Regex(@"[a-zA-Z]+ \(([A-Za-z0-9]+: '[^']*' *)+\)");
Assert.IsTrue(regex.IsMatch(theStringAbove));
Seems that when I modify a group (in this example, with +) it bombs?