Translations of this page:

Chapter 12: Regexps

HWZT chapter 12 (Regexps): the example works in Scaffold 2.0 with no deltas (other than those described in chapter 11 above). To test, open Scaffold 2.0 on any page (e.g. the directions for opening for chapter 11 will work) and enter the code

function detectWeb(doc, url) {
  var x = "                     346                       " 
  x = x.replace(/^\s*|\s*$/g, '');
  Zotero.debug(x); 
}

. Click on icon=“Run detectWeb” (the eye): in the Test Frame you should get results like

12:00:00 346

Next: Chapter 13: Scaffold Metadata Tab

dev/how_to_write_a_zotero_translator_2nd_edition/chapter_12.txt · Last modified: 2011/04/03 16:20 by debweb