Community Profile

photo

Anuj Berwal


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


I want to change this string "D:\Adapters\04_easy\00_CodeGen\algo\gen\cdp" to get "D:\Adapters\04_easy\". Which function should I use? Regexprep doesn't seem to work.
srcpath="D:\Adapters\04_easy\00_CodeGen\algo\gen\cdp"; I want newsrcpath="D:\Adapters\04_easy\";

8 years ago | 1 answer | 0

1

answer