regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
lisp
Published on Tue Mar 01 2022
match function names in defun constructs
Regex
Test String
Additional matching regexes for
lisp
lisp
match function names in defun constructs
python:S117
Local variable and function parameter names should comply with a naming convention
Function Declaration / Expression
matches both function declarations and expressions in javascript. ex. function name () {...} || function () {}
Arrow function to Normal function
Convert Arrow Function to Normal Function
Wikipedia anchor
Match Wikipedia anchor dot-instead-of-percent encoding string.replace(/((?:\.[a-f0-9]{2}){2})/ig, function(match) { return decodeURIComponent(match.replace(/\./g, '%')) });
Title Casing
for use in function to title case a string; function cap(str) { return str.replace(/\w\S*/g, function(txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); }
extract JavaScript function name
Extracts the name of the outer function. Useful to get the name of a function reference using fn.toString().
Replace text domain in WP i18n
This will find all instances where the WP i18n function `__()` is used, and change the text domain to something else. This will recognize instances of the function use as separate, even if they appear in the same function
Dim name
Gets all variable names
Get directive names from javascript code
Get directive names from javascript code