Hi All,
I need to retrieve part of string. The 'substr' will be an option but the length of the string can be changed.
Here the sample:
826482-123-21417-11253 - I need to retrieve '123-21417-11253'. As I said 'subStr' will be an option but the length of the string can be
changed (for exp.: 8266-123-21417-11253).
So, basically, I need to retrieve a part after the first '-' 123-21417-11253.
Does anyone of you have a suggestion?
Many thanks.
*This post is locked for comments
I find it hard to read substring conversions/concatenations, so I encourage people to use containers (with str2con) or lists (with strSplit) for string manipulation instead.
Try something like this:
con2str(conDel(str2con(yourString, @'-'), 1, 1), @'-');
Thank you! It worked.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156