... in TiddlyWiki.com Advanced Search: Filter.
Search Operator -- case insensitive by DEFAULT
[search:title:regexp[^b]]
Field Operator -- variant case match via CHARACTER CLASS (NOTE: variable NOT needed for [...] brackets for Character Class)
[field:title/^[bB]/]
Regexp Operator -- case insensitive via FLAG
regexp:title[(?i)^b]]
Regexp Operator -- variant case match via capturing group ALTERNATION
[regexp:title[^(b|B)]]
Regexp Operator -- match using VARIABLE
[regexp:title<var-b-first>]
You need create a global macro (Tiddler named anything, tagged ... $:/tags/Macro) containing ...
\define var-b-first() ^[bB]
Is this many ways to skin a cat an argument in favor of [prefix[b]]
I do see the value of regex and its on my list of must learn but it does help me understand what people with dyslexia face. Every characters meaning changes according to most of the characters that follow or proceed it. There is a hump one must get over before reading regex does not confuse the reader.
What is critical in my view is to show when regex does a job that can not be done with the standard operators, or does it better.
Regards
Tony
pattern_a|pattern_b
(?=.*pattern_a)(?=.*pattern_b)
[[Regular Expressions in filters ... VARIANT methods & WEIRDNESS - Google Groups |https://groups.google.com/forum/#!topic/tiddlywiki/l-OSoKg4j4E]] <br/>