Regex to match end-of-sentence markers [closed]

[!?.]+(?=$|\s)

Try this.You can add markers as needed.Replace by “.

See demo.

http://regex101.com/r/lS5tT3/15

Browse More Popular Posts

Leave a Comment