Regular Expressions 101

Community Patterns

Custom Array Type Declaration Finder

1

Regular Expression
ECMAScript (JavaScript)

/
^(a|A)rray(\.<.+>)?$|^(.+)\[\]$
/
gm

Description

This Regex can be used to find the custom array types in jsdoc typdefs

Submitted by pranomvignesh - 3 years ago