regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
extract JavaScript function name
Published on Tue Mar 01 2022
Extracts the name of the outer function. Useful to get the name of a function reference using fn.toString().
Regex
Test String
function findMe (z) { if (z == true) { console.log ("Something says Z is true"); } }
Additional matching regexes for
extract JavaScript function name
extract JavaScript function name
Extracts the name of the outer function. Useful to get the name of a function reference using fn.toString().
Function Declaration / Expression
matches both function declarations and expressions in javascript. ex. function name () {...} || function () {}
Google Sheets Reference Formula
Matches and extracts the relevant parts of reference formulas from Google Sheets. For instance: ='Test Sheet'!H$5
Culture File Name Extraction
Extracts the culture name from a javascript file. Works with minified and non minified files.
split URL into location-resource-params (JavaScript)
Extract resource location, name and query parameters from a URL (JavaScript version)
Arrow function to Normal function
Convert Arrow Function to Normal Function
reference
reference pattern checking
Replace caracters not inside HTM tags
Select a character (or string) ingnoring if that element is inside the HTML tags. Useful to apply html tags using replace.
Typescript - /// <reference path="..."/> Expression
Finds Typescript's reference path syntax.
replace-last-comma with semicolon
replace-last-comma with semicolon similar to http://stackoverflow.com/questions/3829483/how-to-replace-last-occurrence-of-characters-in-a-string-using-javascript