You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that a lot of the community solutions to the SubstringBetween where simply accidentally correct, doing
s.Substring(s.IndexOf(first) + first.Length, s.IndexOf(last) - last.Length);
i.e. thinking that the length of the last delimiter is relevant, which looks symmetrical to the handling of the first Substring parameter, and just happens to be correct on the provided string.
0 commit comments