This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

regexp Operator (Examples)

23rd January 2015 at 10:53pm

These examples make use of the Days of the Week tiddler.

[!is[system]regexp[Wiki]]
→ non-system tiddlers with Wiki in their title

[!is[system]regexp[(?i)Wiki]]
→ non-system tiddlers with Wiki in their title, ignoring case

[!is[system]regexp[Wiki(?i)]]
→ same again

[regexp[(?i)\.jpe?g$]]
→ tiddlers with titles ending in .jpg or .jpeg, ignoring case

[regexp:created[^201408]]
→ tiddlers created in August 2014

The regular expression [0-9]{2} matches two consecutive digits. Because it contains square brackets, the way to use it with the regexp operator is via a variable, as follows: