modified in 2019: ^2019
modified in January 2019: ^201901
modified in August (any year) : ^\d{4}09
modified on 3rd of each month: ^\d{6}03
modified on 1st of December (any year): ^\d{4}1201
modified between 1st and 9th of December (any year): ^\d{4}120
created/modified on Wednesdays
Target fields: created modifiedwrite regexp patterns to match
- created/modified in August 2019
- created/modified on Wednesdays
- created/modified on 3rd day of each month
- created/modified on 1st of December of each year
- created/modified on January of each year
YYYYMMDDhhmmssmil
20190827150116448
^201908
^......03
^....1201
^\d{4}1201
^....01
^\d{4}01
^20170[34]0[27]
^20170(3|4)0(2|7)
Q: Anyone want to try 4-9pm on all days from the 1st of August to the 25th? :-)TT
^.*?[ßÄÖÜẞäöü]+?
->"Ü<-ber" is a German word. ↩︎
->The word "Ü<-ber" is used in German.↩︎
[ßÄÖÜẞäöü]
<$set name="german-accented" value="[ßÄÖÜẞäöü]">
<<list-links "[regexp:title<german-accented>]">>
</$set>
Hi Hans...
\B(\w)\1{2,}\B
The Dark Woooood
Index9996no
The band played "Ooom-pa-pa"
The Item 999 is in stock
The Item999 is in stock
^[^\$]
^[^/]+?/[^/]+?$
^(([^/]+?)/){1}[^/]+?$
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/166333e8-b354-47a0-b685-b47886566827%40googlegroups.com.
--
^(([^/]+?)/){0}[^/]+?$
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/51b95aba-4633-421f-a3f4-792669912fac%40googlegroups.com.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/166333e8-b354-47a0-b685-b47886566827%40googlegroups.com.
--
/^(([^/]+?)/){1}[^/]+?$/gm
TT,At https://regex101.com/ the below syntax return errors it needs the slash character to be escaped!Please have a lookBest wishesMohammad
On Thu, Sep 5, 2019 at 4:05 PM @TiddlyTweeter <Tiddly...@assays.tv> wrote:
--Advanced use of the Negated Character ClassMatch titles with defined numbers of "/" slash
^(([^/]+?)/){1}[^/]+?$
The difference here is in {1}If you change the number then it will change the number of "/" permitted in the match.You can test it at: http://tw-regexp.tiddlyspot.com/#RegExp%20Experimentation%20with%20TitleTT
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 tiddl...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7262fe0a-4a4b-402f-a094-f0cf3ee6f94f%40googlegroups.com.
How we can use this in a real case? Not starting with $ sign means all ordinary tiddlers!
Does this pattern allows trailing slashes?
^(([^/]*?)/){1,}[^/]*?$
/$
At https://regex101.com/ the below syntax return errors it needs the slash character to be escaped!
There's a difference in javascript between a regular expression, and a string that can be interpreted as a regular expression.If you notice at regex101, the input box has / at the start and end. So it's assuming a direct regular expression, like:
/^(([^/]+?)/){1}[^/]+?$/gmThe slashes are used to indicate the start and end of the expression, and so any slashes in the middle not part of a character class throw an error.But we're actually passing a string here. So internally something like this is happening:var patt = new RegExp("^(([^/]+?)/){1}[^/]+?$") ;Since the forward slash is not needed to delimit the expression when the regular expression is created this way, it doesn't throw an error inside of TW.It's unfortunate that the tool at regex101 doesn't allow you to enter the expression as a string.-- Mark
^(([^/]*?)/){1,}[^/]*?$
/