Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-03-06 16:00
Flavor·JavaScript

/
^\d\w{4}\.$
/
gm
Open regex in editor

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