Translations of this page:

We’re in the process of updating the documentation for Zotero 5.0. Some documentation may be outdated in the meantime. Thanks for your understanding.

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: 2017/11/12 19:53 (external edit)