There is a string: stringA chars1 stringB stringA chars2 stringB
Need to get:
1) stringA chars1 StringB
2) StringA chars2 StringB
If I set a pattern:
string pattern = @ "stringA [sw] + stringB";
That results in the entire line: stringA chars1 stringB stringA chars2 stringB
How to make a template that takes all possible strings that do not have, for example, stringA? Or is there some other approach to solve this problem?