I want a regex to match a string that contains a word from the previous period to the next period but if a number with a period is in in between, I want it to match the next period.
So in:
Hello. This is an example. This is an example. This is an 4.815 example.
I wanto to match:
This is an example
This is another example.
This is an 4.815 example.
For now I have this regex but it breaks at the period in "4.815"
([^.]+)example[^.]*
Thank you!