===== Chapter 12: Regexps =====
[[http://niche-canada.org/member-projects/zotero-guide/chapter12.html|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**: [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 13|Chapter 13: Scaffold Metadata Tab]]