RegExp Snippets

Just a quick note-to-self…

Find all non-commented trace statements:
^(?<!\/\/)[\s]*trace\(

Inject GET param onto end of a URL and preserve any existing params. (must have file extension):
myURL.replace( /(?<=\.\w{3})\??(.*)$/i, '?d=' + new Date().time + '&$1' );



Your Thoughts...


All content © Copyright 2012 by tripleaxis.com.
Subscribe to RSS Feed – Posts or just Comments

Powered by WordPress
Designed by Graph Paper Press