I wish to known if exist a clean way to split a string using different tags for opening and ending.
For example:
<&field1&>outside<&field2&>
using the function split:
string[] dd={"<&","&>"}; string[] b1 = a1.Split(dd,StringSplitOptions.None);
it show me:
- 0:
- 1:field1
- 2:outside
- 3:field2
- 4:
(that it is that i want to do). but also
<&field1<&outside<&field2<&
show the same.