Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-05-31 08:37
Flavor·PCRE2 (PHP)

/
\b[a-z0-9]{6}\b
/
g
Open regex in editor

Description

StackOverflow RegEx, lower case letters and numbers, with exact length of 6

  • RegEx without boundary (1st try) [a-z0-9]{6}
  • RegEx with boundary (solution) \b[a-z0-9]{6}\b
Submitted by Nicolas Karg