Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Extract URL values using regex capture to improve your NRQL results

Blog post from New Relic

Post Details
Company
Date Published
Author
Ashton Hunger, Senior Software Engineer
Word Count
1,093
Language
English
Hacker News Points
-
Summary

New Relic has released regex capture, a feature that allows users to query and extract useful data from strings such as URLs, log messages, and more using regular expressions in New Relic Query Language (NRQL). This feature makes it easier to query and extract focused data from strings, allowing users to find specific data points and gain insights into their tech stack. With regex capture, users can use the `capture` function to extract data from strings, including account IDs within URL paths. The feature is available in NRQL and can be used in various clauses such as SELECT, WHERE, and FACET. By using regex capture, users can discover new insights on their data and improve their queries.