find pattern in string in reverse order

search character in string from right-hand end
1.3K Downloads
Updated 20 Feb 2007

No License

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 (2024). find pattern in string in reverse order (https://www.mathworks.com/matlabcentral/fileexchange/14013-find-pattern-in-string-in-reverse-order), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0