Re: [tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-09-01 Thread @TiddlyTweeter
Mohammad wrote: > > Hi Josiah, > Good suggestion! > > I think I should write a book on Tiddlywiki :-) > Great. I'd happily edit it. J. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails

Re: [tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-09-01 Thread Mohammad Rahmani
Hi Josiah, Good suggestion! I think I should write a book on Tiddlywiki :-) Best wishes Mohammad On Sun, Sep 1, 2019 at 12:11 PM @TiddlyTweeter wrote: > Mohammad > > An issue that is now clear in this thread is the *need for full > filter/operator examples documenting*. Not just regex. > >

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-09-01 Thread @TiddlyTweeter
Mohammad & all I just want to make the general point, again, that regular expressions are NOT just for "matching", they are for "*search & replace*" too. Filters are dominantly orientated to matching, to search & find, not change. I thought your regex tool in Tiddler Commander a good step

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-09-01 Thread @TiddlyTweeter
Mohammad An issue that is now clear in this thread is the *need for full filter/operator examples documenting*. Not just regex. I highly doubt most anyone would have Mark's skill at combining the regex operators to extract as he does. Nor TonyM's solution to his desire to list macros and

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-09-01 Thread @TiddlyTweeter
TonyM Another good illustration. Useful tool! Make the table heading columns sortable and you'd have both lookup by macro name and lookup by Tiddler name :-) TT TonyM wrote: > > ... a title and link to the containing tiddler as well. > > > Macro > Defined in > Global (Tagged

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-09-01 Thread @TiddlyTweeter
Thanks Mark S. VERY helpful illustration! Has anyone ever asked on GH to add ability to use Regex capture groups directly in filters? They are very useful as you are able to define in a regex exactly what you need back. In effect they could do your solution in, basically, one move. Just

Re: [tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread Mohammad Rahmani
Tony, Mark, That would be great if a slider is used to simply click and display the macro content (body). Best wishes Mohammad On Sun, Sep 1, 2019 at 6:52 AM TonyM wrote: > Mark, > > Was your result on an empty.html? > > Thanks I have the answer > > I did not get the above results.But

Re: [tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread Mohammad Rahmani
Hi Tony, Just to note that in TW 5.1.20 the below <$link to=<> ><$text text=<>/> can be write as simple as <$link/> --Mohammad Best wishes Mohammad On Sun, Sep 1, 2019 at 6:52 AM TonyM wrote: > Mark, > > Was your result on an empty.html? > > Thanks I have the answer > > I did not get

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread TonyM
Mark, Was your result on an empty.html? Thanks I have the answer I did not get the above results.But trying again on tiddlywiki.com did with <$list filter="[all[]get[text]splitregexp[\n]regexp[^\\define]splitregexp[^\\define]!is[blank]]" variable="splitme"> {{{ [splitregexp[\(.*?\)]first[]]

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread 'Mark S.' via TiddlyWiki
Hi Tony, Here's the list it generated for me (I had to alphabetize them in order to get rid of google line break anomalies) . Which ones do you think are false positives? .advancedsearch-tab .attr .button .clink .combokey .controlpanel-tab .deprecated-since .dlink .dlink-ex .em

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread 'Mark S.' via TiddlyWiki
There are no core tools for extracting sections identified by regular expressions directly. Instead you have to apply various levels of splitting, identifying, extracting (sometimes using nth operator). The actual separator gets thrown away -- the opposite of what would be convenient for

Re: [tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread Mohammad Rahmani
This is a link to Yazd and show-macro https://tw-scripts.github.io/Yazd/#macro%2Fshow-macro Show macro uses the powerful find macro which itself can be used for partial transclusion. Best wishes Mohammad On Sat, Aug 31, 2019 at 11:55 PM coda coder wrote: > > > On Saturday, August 31, 2019

Re: [tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread coda coder
On Saturday, August 31, 2019 at 1:40:41 PM UTC-5, Mohammad wrote: > > Hi Tony > I have already published a macro to find all macros and show them in a > useful format! > Have a look at Yazd wiki! > link? -- You received this message because you are subscribed to the Google Groups

Re: [tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread Mohammad Rahmani
Hi Tony I have already published a macro to find all macros and show them in a useful format! Have a look at Yazd wiki! By the way, your suggestion is useful in creating regexp example and hopefully Mark, Josiah will create one! Best wishes Mohammad On Sat, Aug 31, 2019 at 8:11 AM TonyM

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-31 Thread @TiddlyTweeter
Ciao TonyM & Mohammad Search a macro tiddler for macros of the form > \define macro-name() > then list all "macro-names" > Which can then be used to display the "current value" of that macro Creating a regular expression to match what you want is quite easy. My problem is maybe I don't know

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-30 Thread TonyM
Another useful CSS operating on the text field if possible? Search a macro tiddler for macros of the form \define macro-name() then list all "macro-names" Which can then be used to display the "current value" of that macro - Ie begins \define - one or more spaces - capture the

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-30 Thread Mohammad
*Announcement: RegExp in Tiddlywiki* *Date: Aug30, 2019* *Status: In progress* *Revision: 0.8* *Purpose: Learn regexp in Tiddlywiki* - *0.8 - Aug 30, 2019* 1. Regexp Search in Fields improved 2. A new search-regexp macro has been added which can be called anywhere. 3.

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-30 Thread @TiddlyTweeter
*Note on "word" boundaries: \b in character class will not work!* Inside a Character Class, like so: [\b], no longer means "word-boundary", it means *"match a backspace".* This is why putting short-hands for character classes inside character classes is not good practice. [\w] will work as

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-30 Thread Mohammad
Thanks TT for the note! On Friday, August 30, 2019 at 2:28:28 PM UTC+4:30, @TiddlyTweeter wrote: > > *Note on "word" boundaries: \b & its limits* > > *"\b"* = "word-boundary" is an anchor that is *complementary to "\w"*. > > \b is shorthand for "before or after the characters [a-zA-Z0-9_]". > >

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-30 Thread @TiddlyTweeter
*Note on "word" boundaries \b & its limits* *"\b"* = "word-boundary" is an anchor that is *complementary to "\w"*. \b is shorthand for "before or after the characters [a-zA-Z0-9_]". In regular expressions "cat", "cat9", "cat_9" and "999" are all "words". *"Über" is NOT a word* in regex

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-29 Thread Mohammad
Thanks Hans, I am happy you found it useful. Cheers Mohammad On Thursday, August 29, 2019 at 7:43:54 PM UTC+4:30, HansWobbe wrote: > > Mohammad: > > Great organizational work, indeed! > > Thanks for this and your many other contributions. > > Cheers, > Hans > > -- You received this message

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-29 Thread HansWobbe
Mohammad: Great organizational work, indeed! Thanks for this and your many other contributions. Cheers, Hans -- 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

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-29 Thread Mohammad
*Announcement: RegExp in Tiddlywiki* *Date: Aug 29, 2019* *Status: In progress* *Revision: 0.7* *Purpose: Learn regexp in Tiddlywiki* A new update has been published. url: http://tw-regexp.tiddlyspot.com/ Please send your feedback. - *0.7 - Aug 29, 2019* 1. Regexp Search Box

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-28 Thread Mohammad
Good, I will see how to adopt it for tw-regexp. --Mohammad On Wednesday, August 28, 2019 at 2:43:19 PM UTC+4:30, @TiddlyTweeter wrote: > > Ciao Mohammad > > For the regex section of *Tiddler Commander *(a slightly hacked version) > I wrote a custom macro that loads both "match" & "replace",

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-28 Thread Mohammad
Great TT, Please prepare Tips Note, I am sure it can help people not familiar with regexp! --Mohammad On Wednesday, August 28, 2019 at 2:02:32 PM UTC+4:30, @TiddlyTweeter wrote: > > M, > > I will write a "*Tips Note*" for use of regex for your site. > > There are some common problems that are

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-28 Thread @TiddlyTweeter
Ciao Mohammad For the regex section of *Tiddler Commander *(a slightly hacked version) I wrote a custom macro that loads both "match" & "replace", "flags", "field" etc ... I wanted to add loading of example data from a Tiddler (non-destructive; i.e. its copied to a temporary Tiddler to work

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-28 Thread @TiddlyTweeter
M, I will write a "*Tips Note*" for use of regex for your site. There are some common problems that are puzzling until you understand them. This I'll do it later as I'm still understanding where users are having problems. But they include ... - When to "escape" via *"\"* and when not to.

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-28 Thread Mohammad
Thanks TT, I will use these comments on next update of tw-regexp Cheers Mohammad On Wednesday, August 28, 2019 at 10:58:12 AM UTC+4:30, @TiddlyTweeter wrote: > > A very good resource Mohammad! Of great long-term value. I hope it gets > used! > > I'd ask Jeremy to link to it from docs! > >

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-28 Thread @TiddlyTweeter
Ciao Mohammad I think it would be worth, in time, adding ... - A Tiddler for *Quick Reference to Regex Syntax* (you could use the tiddler I wrote for Tiddler Commander regex section as a starting point?) - A tiddler for the *TW Regex (& related) Operators* that summarises (1) how

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-28 Thread @TiddlyTweeter
A very good resource Mohammad! Of great long-term value. I hope it gets used! I'd ask Jeremy to link to it from docs! One comment ... - It should be mentioned that * should not be used instead + as the latter needs to have at least one character so does not matches empty string

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-26 Thread Mohammad
*Announcement: RegExp in Tiddlywiki* *Date: Aug 26, 2019* *Status: In progress* *Updated to Release 0.6* - *0.6 - Aug 26, 2019* 1. Experimentation tiddler was added to let freely play with regexp patterns 2. Documentation

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-25 Thread Mohammad
*Announcement: RegExp in Tiddlywiki* *Date: Aug 25, 2019* *Status: In progress* *Updated to Release 0.5* This update uses tag to collect all tiddlers describing a regexp pattern. These tiddlers have two fields a below and tagged with pattern - pattern - description A demo uses description