I need a RegEx guru to help me (I'm a noob). I have the following string that I want to parse out the client ID and contract ID from (using C#). I can do it with a bunch of string functions, but I thought a RegEx might be cleaner. Can anyone help me do this?
Here's an example of the string: "FW: Order Contract - 11009972; Customer - 5424 - TOYOTA CO; AE ID - 160SB Completed"
And I need to get the following values: 11009972 put in a ContractID variable 5424 put in a CustomerID variable
Now the issues are that the ContractID and CustomerID can be any length, but they will always be numeric values, preceeded with "Contract - " or "Customer - " and they will always be in the same order. The rest of the string's text may change in content and length, but it can be discarded. So I want to find the digits following "Contract - " or "Customer - " up until the next space or semicolon (or any non-numeric character).
Any help is greatly appreciated!