> Any idea how to avoid the NULL respectively replace it by an empty string > if match doesn't get any result? > > tiddler.tags.join(" ").match(/[0-9]{4}-[0-9]{2}-[0-9]{2}/).replace(/\0/g,"")
Use this: tiddler.tags.join(" ").match(/[0-9]{4}-[0-9]{2}-[0-9]{2}/)||"" -e -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.