Regular Expressions 101

MySQL : table structure info

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

/
^(\w+)\s+(\w+)(\(\d*\))?.*$
/
gm

Description

MySQL : table structure parser

mysql command : SHOW COLUMNS FROM edn_work_order_event

Submitted by dobri