instrrev/strrevfind

Find character in string from EOS (right-hand end)

您现在正在关注此提交

From the string end (ie right-hand-side) finds position of the kth character matching the specified pattern.

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

Returns:
- matching position if found match
- 0 otherwise

Returns first matching position if no right_match_count specified.

NB: function name inspired from VBS. Could be renamed "strrevfind.m" to fit Matlab nomenclature. Let me know what you think.

引用格式

Tseviet Tchen (2026). instrrev/strrevfind (https://ww2.mathworks.cn/matlabcentral/fileexchange/14012-instrrev-strrevfind), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: Manchester

类别

Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0