Explore
Create Account
Login
New Snippet

@vatchedj's Snippets

Untitled

function getFunctionsClojure(str) {
    var functions = str.trim().split(/\s+/);
    var pattern = functions.map(function(func) {
        var escaped = func.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
        return '(?<![a-zA-Z0-9_\\-*+!?$%&=<>:])' + escaped + '(?![a-zA-Z0-9_\\-*+!?$%&=<>:])';
Modified 3w ago
|
Created 1mo ago

Explore

|

Create Account

|

Login

|

Donate

Privacy Policy

|

Terms & Conditions

|

Copyright © 2018-2022 Staymark Group LLC