I have a string
eg.
string a = "OU=QALevel1,DC=CopTest,DC=copiun2,DC=com";
now i want my temp string to have the value
tempString = "DC=CopTest,DC=copiun2,DC=com"
I need to remove all occurrences of the OU value pairs from the strings. These always appear first in the string.
Well, it depends on what grounds you want it to be that. If you want everything after the first comma, you could use:
If that’s not how you want to split the string, please give more information about what you need to do.
EDIT: If you need “the first comma followed by DC=” you can change the first line to:
Again, if you need something else, please be much more specific about what you’re trying to do.