Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2011 (Minneapolis, MN) with: Emily Christiansen
Ben Nadel at cf.Objective() 2011 (Minneapolis, MN) with: Emily Christiansen@egchristiansen )

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()... read more »