archive
.bsteph.com
🌱
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+)(?=([.,!\:;\\"-?]))
regex