I am trying to create a .Net Regex that will separate an Excel header data string into its component parts. The following example shows the format of the raw data string I need to parse:
&LLeft-side text&CCenter text&RRight-side text
The tags &L, &C and &R respectively demark the left, center and right sections of the header data. So, I need a Regex that will separate the above string into a number of sub-strings, each of which commences with &L, &C or &R.
Notes: the left, center, right sections may occur zero or more times in a single header (where multiple occurences for a given section will be concatenated in client code). The ampersand escape character is also used for formatting within each section, so the Regex must ignore usages than the above delimeters.
Thanks, in advance, for your suggestions.