Ich habe einen Text wie diesenRegulärer Ausdruck das letzte Vorkommen in der Teilkette übereinstimmen
words words words tag a words words tag a words tag b words time words words tag c words time
Ich weiß nicht, was a, b und c. Was ich einfangen will, ist „tag b words time
“ tag c words time
"und andere wie es. So war mein Versuch regexp tag[\w ]+?time
. Aber das passt
tag a words words tag a words tag b words time
Wie kann ich das letzte Vorkommen von Tag erfassen? Ich bin mit Matlab so ., wenn es eine nicht regexp Lösung dieses Problems ist, die zu groß sein würde
https://in.mathworks.com/help/matlab/ref/strfind.html?requestedDomain=www.mathworks.com #responsive_offcanvas für ohne Regex. – Garfield
@LonelyPlanet können Sie das hier nicht tun, wie ich nicht weiß, was a/b/c sind, wie ich in der Frage erwähnt –