Regular Expressions 101

Community Patterns

Match morse code

1

Regular Expression
ECMAScript (JavaScript)

/
\s?[.-]+\s?
/
gm

Description

This matches morse code input and leaves word break spaces

Submitted by Ember - 5 months ago