I have data apple/banana/orange/cherries:Z1234 and avocado/cantaloupe/watermelon:Y5678
How to put single regex that can get apple/banana/orange and avocado/cantaloupe/watermelon ?
If I put r'(.+?/.+?/.+?):.* I get avocado/cantaloupe/watermelon but I will get apple/banana/orange/cherries (the goal is supposed to be only apple/banana/orange)
If I put r'(.+?/.+?/.+?)/.* I get apple/banana/orange but I will get avocado/cantaloupe/watermelon:Y5678 (the goal is supposed to be only avocado/cantaloupe/watermelon)
How can I solve it with single regex?