I am trying to create a regex that will match a full sentence that includes a keyword. This is an example passage:
"Cash taxes paid, net of refunds, were $412 million 2016. The U.S. Tax Act imposed a mandatory one-time tax on accumulated earnings of foreign subsidiaries and changed how foreign earnings are subject to U.S. tax."
I want to match full sentences that include the keyword "subsidiaries". To accomplish this, I have been using the following regular expression:
[^.]*?subsidiaries[^.]*\.
However, this will only match " Tax Act imposed a mandatory one-time tax on accumulated earnings of foreign subsidiaries and changed how foreign earnings are subject to U" since the expression begins and ends at the "." in "U.S.". Is there a way to specify in the expression that I do not want it to stop at specific phrases, such as "U.S." or ".com"?