Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^\d\w{4}\.$
/
gm

Description

Task

You have a test string S. Your task is to match the pattern Xxxxx.
Here, x denotes a word character, and X denotes a digit. S must start with an X digit and end with '.' symbol. S should be 6 characters long only.

Submitted by anonymous - 6 years ago