laravel生成正则表达式以验证输入

I need to create regex pattern to validate input value. Value must by string which look like this: 1234567/00/AB/1234/123456
in words 6 digits slash 2 zero slash two upper letters (3 possiblities AA or AB or AC) slash 4 digits slash 6 digits. Now i have something like this but not's work

'regex:/^\[0-9]{7}\/\[0]{2}\/\[A-Z]{2}\/\[0-9]{4}\/\[0-9]{6}/'

Use this one:

[0-9]{6}\/[0]{2}\/(AA|AB|AC)\/[0-9]{4}\/[0-9]{6}
  • First sequence should be of 6 chars ({6})
  • Third sequence is one of the 3 possibilities ((AA|AB|AC))