Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
\b([a-zA-Z]{2,3}[\s]*[0-9]{3})\b
/
gm

Description

Match with courses like: AB123, AB 123, ABC123 or ABC 123

Submitted by Matheus Sampaio - 8 years ago