Link to home
Start Free TrialLog in
Avatar of greddin
greddinFlag for United States of America

asked on

Help with getting just part of a string

I've got a string variable that contains a folder path.  I have two variables for comparison.

string mySite = "MySiteName";
string fullPath = "/12/dir/MySiteName/Documents/xyz;

I want to return everything AFTER the MySiteName/

Like this: Documents/xyz

Knowing my two variables, how can I return just the "Documents/xyz" string?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of greddin

ASKER

Thanks!