Skip to content

extractAfter

strings · scripts/strings/extractAfter.m

EXTRACTAFTER  Extract substring after pattern or position (MATLAB compat).
  GitLab #217 / #803 / #786 / #2285

  newStr = extractAfter (str, pat)
  newStr = extractAfter (str, pos)

  pat may be text or a pattern struct from digitsPattern / lettersPattern /
  wildcardPattern / etc.  Output class matches str.  For string arrays, a
  missing pattern match yields <missing> (MATLAB R2026a).