Regular Expressions 101

matching URLs and failing non-URLs

Open Workspace
  • JavaScript
  • Match
0

Regular Expression

/
[^\s]{4,}
/
gm

Description

Here, we would add a quantifier to a simple char class in an expression such as:

Submitted by Anonymous