🌱 Useful Regex

Source

last punctuation of line

([[:punct:]](?=([^[:punct:]]*$)))

last punctuation if it is the last char of line

([[:punct:]])$(?=([^[:punct:]]))

Last space followed by punctuation

(\s+)(?=([.,!\:;\\"-?]))
Made by Brandon . If you find this project useful you can donate.