Regular Expressions 101

MongoDB _ID

Open Workspace
  • PCRE (Legacy)
  • Match
1

Regular Expression

/
^[0-9a-fA-F]{24}$
/

Description

Detect if is a valid id for MongoDB

Submitted by manuerumx