Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Crop text after 20 chars with regex
([^\s][\s\S]{0,20}(?!=[^\s]))([\s]|$)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment