> ⚠️ `regexextract` is unavailable for MongoDB, SQLite, and SQL Server. For Druid, `regexextract` is only available for the Druid-JDBC driver.
Extracts matching substrings according to a regular expression.
Syntax: `regexextract(text, regular_expression)`.
...
...
@@ -765,16 +767,20 @@ Limitations are noted for each aggregation and function above, and here there ar
**H2** (including Metabase Sample Database): `Median`, `Percentile`, `convertTimezone` and `regexextract`
**Druid**: `regexextract` is only available for the Druid-JDBC driver.
**MongoDB**: `regexextract`
**MySQL/MariaDB**: `Median`, `Percentile`.
**Presto**: Only provides _approximate_ results for `Median` and `Percentile`.
**SQL Server**: `Median`, `Percentile` and `regexextract`
**SQLite**: `log`, `Median`, `Percentile`, `power`, `regexextract`, `StandardDeviation`, `sqrt` and `Variance`
**Vertica**: `Median` and `Percentile`
Additionally, **Presto** only provides _approximate_ results for `Median` and `Percentile`.
If you're using or maintaining a third-party database driver, please [refer to the wiki](https://github.com/metabase/metabase/wiki/What's-new-in-0.35.0-for-Metabase-driver-authors) to see how your driver might be impacted.
Check out our tutorial on [custom expressions in the query builder](https://www.metabase.com/learn/questions/custom-expressions) to learn more.
> ⚠️ `regexextract` is unavailable for MongoDB, SQLite, and SQL Server. For Druid, `regexextract` is only available for the Druid-JDBC driver.
`regexextract` uses [regular expressions (regex)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) to get a specific part of your text.
`regexextract` is ideal for text that has little to no structure, like URLs or freeform survey responses. If you're working with strings in predictable formats like SKU numbers, IDs, or other types of codes, check out the simpler [substring](../expressions/substring.md) expression instead.
...
...
@@ -51,9 +53,9 @@ Now, you can use **Campaign Name** in places where you need clean labels, such a
## Limitations
Regex can be a dark art. You have been warned.
`regexextract` is unavailable for MongoDB, SQLite, and SQL Server. For Druid, `regexextract` is only available for the Druid-JDBC driver.
`regexextract` is not supported on H2 (including the Metabase Sample Database), SQL Server, and SQLite.