How do I match a regex where a line break can happen anywhere?
For example, if I am trying to match “thousands of turtle eggs”, it should match all the following cases. (or even the cases when line breaks are inside the words.)
Scientists have revealed that a mammoth effort to move *thousands of turtle eggs* from beaches around the Gulf of Mexico after the Deepwater Horizon oil spill may have saved almost 15,000 of the reptiles.
Scientists have revealed that a mammoth effort to move *thousands
of turtle eggs* from beaches around the Gulf of Mexico after the Deepwater Horizon oil spill may have saved almost 15,000 of the reptiles.
Scientists have revealed that a mammoth effort to move *thousands of
turtle eggs* from beaches around the Gulf of Mexico after the Deepwater Horizon oil spill may have saved almost 15,000 of the reptiles.
Scientists have revealed that a mammoth effort to move *thousands of turtle
eggs* from beaches around the Gulf of Mexico after the Deepwater Horizon oil spill may have saved almost 15,000 of the reptiles.
or this version to ensure thousands and eggs are not part of another word (like …eggsbath)