String to search for = "in relation to Company A"
Document Contain two lines
(a) in relation to Company A, 31 December 2025;
(b) in relation to Company A, Company B, Company C is 31 December 2025;
Regex which im trying = "(?<=in relation to Company A)(.*)"
But this gives me both lines, I only need first line:
Output Required (means extracting point (a)):
31 December 2025
I'm struggling with changing regex so that i add date part after the word...
in relation to Company A,\s*(\d+.+), this requires at least one digit after your needle.