finding a word after a certain word in a text

ok I want to extract all those rows in a table where one column has strings in which it shall contain the word "change" specifically after the word "terms" .
text is : May not be redeemed for cash or combined with any other offer or coupon. Not valid on clearance (merchandise ending in .98). May not be applied to taxes, previous purchases, or the purchase of gift cards. Non-transferable. Terms are subject to change at any time. Product styles are subject to availability. See store associate for details.

Answers (1)

Read about strfind. Also have a look on contains.

2 Comments

yeah but those two find the exact match regardless and here im trying to set a condition that it shall be after a certain word.
Give both the words...

Sign in to comment.

Categories

Asked:

on 5 Feb 2021

Commented:

on 5 Feb 2021

Community Treasure Hunt

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

Start Hunting!