Summary
Amount Verified: ✅
Tax: 1
Total Amount: 100.00
Amount Paid: ✅
Max Tax: 1
Min: 100.00
I am interested in match where both Amount Verified: ✅ and Amount Paid: ✅ exists.I can do match for each of them individually but not able to figure out how to match for both of them together. Thanks for your help!
Must match both Amount Verified: ✅ and Amount Paid: ✅
>Solution :
Here is one way to do so:
(?=.*Amount Verified: ✅)(?=.*Amount Paid: ✅)
See the online demo here.
(?=): Positive lookahead..*: Matches any character, between 0 and unlimited times.
- Don’t forget to set the
sflag (Dot matches newlines).