Send deprecation to log.
Allow indexing on single word tag.

Also reorder to make the regexp less hard to read.