finding a word after a certain word in a text

1 view (last 30 days)
Julia
Julia on 5 Feb 2021
Commented: KSSV on 5 Feb 2021
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)

KSSV
KSSV on 5 Feb 2021
Read about strfind. Also have a look on contains.
  2 Comments
Julia
Julia on 5 Feb 2021
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.

Sign in to comment.

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!