Skip to main content

Mafj

Member since Jun 13, 2011

Recent Blog Comments By Mafj

  • Javascript Exec() Method For Regular Expression Matching

    Posted on Jun 13, 2011 at 6:29 PM

    An example on how to replace matching regexps with values computed: var re = new RegExp( "([A-Z][a-z]+) ([a-z]+)", "gim" ); var oc = null; var idx = 0; var translated = ""; while ( ( oc = re.exec( selection.text ) ) !== null ) { var repstr = oc[1].toUpperCase() + &q... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel