I got a big file with all my email activity over the last 5 years.
I would like to get all my sentences back that have a question mark.
I’m not good with regex, i just know a bit of what can be done.
Could someone give me a regex that would work? (java)
If it’s possible then i would like to return the bold in the next example:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed amet elementum. Integer nec diam erat, eu consectetur nibh? Cum sociis natoque penatibus et magnis dis parturient montes.
Try this code:
It outputs:
Here I define sentence ending as
.,!or?but you can extend that list easily.