Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
=?('?([\w ]+)?'?!)?\$?([A-Z]+)\$?([0-9]+)(:\$?([A-Z]+)\$?([0-9]+))?
/
gi

Description

Matches and extracts the relevant parts of reference formulas from Google Sheets.

For instance: ='Test Sheet'!H$5

Submitted by anonymous - 10 years ago