warning: Creating default object from empty value in /home/kourge/ on line 34.

Regular Expression That Matches RegExps

Being bored, curious, and redundant all at the same time, I thought: "What if you want to check, in JavaScript, to see if a string is a JavaScript regular expression?" The obvious answer is, in a sense, self-referencing, because you'll have to check with regular expressions too. So basically, a regular expression to check regular expressions in JavaScript. Ugh.

Syndicate content