Tiddler title regular expression

I have a need to match title text. I’m currently working with this which seems okay-ish:

^[^\[\]\{\}\|\>\>\%\s]+$

What does the core use? And where is it?

Comments?

1 Like

If you try and enter an invalid character in a title you get “Warning: avoid using any of the characters…”. Search for that in system tiddlers this text is in $:/language/EditTemplate/Title/BadCharacterWarning search for this and you find its in $:/core/ui/EditTemplate/title where the logic is coded;

<$vars pattern="""[\|\[\]{}]""" bad-chars="""`| [ ] { }`""">
1 Like