Let’s say we have a string:
“somethinghere%C3somethinghere%83%C3%A8%C3%AF%C3%AD%C3%AEsomethinghere%C3%A7somethinghere”
What would be the Regex.Split pattern to get the following list of values:
- %C3
- %83%C3%A8%C3%AF%C3%AD%C3%AE
- %C3%A7
NOTE: somethinghere – can be any text that has no value and it does not contain the ‘%’ char;
Thanks in advance!
Looks like you need
Regex.Matchesinstead ofRegex.Split. If you want result to be list of strings you could use linq: