Log in

View Full Version : Resolved Curses! RegExed Again!



jscheuer1
07-26-2012, 08:30 PM
Has anyone else ever noticed how a lot of regular expressions look like cursing and swearing as it's represented in PG rated comic strips?

One I recently wrote to clear off the query string and hash from a URL:


basehref = location.href.replace(/#|\?.*$/g, '');

Looks like cursing to me.