find pattern in string in reverse order

search character in string from right-hand end

You are now following this Submission

Find position within string of specified pattern from the right-hand end (EOS). Use for eg file directory string manipulation.

Syntax: INSTRREV (string, pattern, [right_match_count])

Returns: - matching position if found
- 0 otherwise

Cite As

Tseviet Tchen (2026). find pattern in string in reverse order (https://se.mathworks.com/matlabcentral/fileexchange/14013-find-pattern-in-string-in-reverse-order), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0