Ciao TonyM & Mark S.

Really interesting work.

A few small non-consequential notes on the regex ... This is just for 
interest.

Marks' ...

^\w+?\.\w+?\.\w+?$ 

is perfectly serviceable. But it will work simpler too ...

^\w+\.\w+\.\w+$

... The qualifying "?" that is to prevent "greedy" matches is not needed. A 
greedy match here is fine.

One issue is that \w is shorthand for the JS character class ...

[a-zA-Z0-9_]

This means IF you used, for instance, any accented character it would break.

A way round this would be to add the accented characters to an explicit 
class. But every one would need explicitly adding. Easier would be to use , 
instead of \w, a negative character class like [^\.] = its not a full-stop.

The only problem with regex character classes in TW is they get a bit 
baroque to use as they need square brackets so you can't do them directly 
-- https://tiddlywiki.com/#regexp%20Operator

Just thoughts

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3e816e4c-0dcc-4b93-8ed9-1422a0326c59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to