Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
(\:(\w|\+|\-)+\:)(?=\s|[\!\.\?]|$)
/
gim

Description

Detects the short-code words for emojis (a la jemoji).

Submitted by Eric McCormick - 9 years ago