A worked example, rendered from real sample data. Sign in to run the tool on your own input.
function
function foo() {}
const x = 1;
function bar() {}Found 2 matches in 2 lines:
1: function foo() {}
(function)
3: function bar() {}
(function)
Interactive grep pattern matcher. Part of the DevTools Surf developer suite. Browse more tools in the Developer Utilities collection.