I expect the same outcome as the example, but i see no result :-) Op di 9 mrt. 2021 om 08:40 schreef Mohammad Rahmani < [email protected]>:
> Rey, > You have copied the example from http://tw-regexp.tiddlyspot.com/ > It works fine! It extracts the content inside <russ> ...</russ> tags > correctly! > So what is wrong here? What do you expect to see as output? > > > Best wishes > Mohammad > > > On Tue, Mar 9, 2021 at 11:02 AM Ray Vermey <[email protected]> wrote: > >> the macro: >> >> \define extract-from-tag(tid, tagname) >> <$list filter="""[{$tid$}splitregexp[\n]join[ >> ]splitregexp[<$tagname$.*?>]butfirst[1]]""" variable=item> >> <$list filter="""[<item>splitregexp[</$tagname$>]butlast[1]]""" >> variable=item2> >> <$text text=<<item2>>/><br/> >> </$list> >> </$list> >> \end >> >> >> The tiddler calling it >> >> <<extract-from-tag ttt russ>> >> >> The tiddler with the data >> >> Morbi non enim facilisis, lacinia odio volutpat, congue arcu. Sed vel >> ullamcorper >> magna, maximus malesuada nulla. Fusce pharetra commodo facilisis. <russ >> class="fred">---- #1 This is not >> Latin.----</russ> Integer in justo ac diam <russ class="fred">---- #2 >> This is not Latin either.----</russ> >> lobortis eleifend. Nullam vitae sollicitudin risus. Etiam ut aliquet >> nulla. >> Morbi facilisis urna id lacus feugiat suscipit. >> >> Quisque a nulla luctus lacus tincidunt euismod. Duis condimentum luctus >> leo a tristique. >> Donec quis vulputate arcu, non lacinia purus. Nullam sit amet interdum >> lorem. <russ class="fred">---- #3 Nor is this Latin.----</russ> >> >> Op di 9 mrt. 2021 om 08:23 schreef Mohammad Rahmani < >> [email protected]>: >> >>> Rey, >>> The example in the description page works. Would you please give me a >>> minimal example to see what the problem is! >>> >>> >>> >>> Best wishes >>> Mohammad >>> >>> >>> On Tue, Mar 9, 2021 at 10:35 AM Ray Vermey <[email protected]> wrote: >>> >>>> Yes and doing exactly that does not seem to work. >>>> That is my question :-) >>>> >>>> Ray >>>> >>>> 9 mrt. 2021 04:43:50 Mohammad Rahmani <[email protected]>: >>>> >>>> Hi Rey, >>>> Examples and description for how use extract by tag can be found here >>>> >>>> http://tw-regexp.tiddlyspot.com/#Extract%20Contents%20between%20Html%20Tags >>>> >>>> It is used for HTML tags! and not related to TW tags! >>>> >>>> The author of this part is Mark S >>>> >>>> In brief you can use this macro to extract contents inside a <htmltag> >>>> .... </htmltag> >>>> >>>> >>>> >>>> Best wishes >>>> Mohammad >>>> >>>> >>>> On Tue, Mar 9, 2021 at 12:36 AM Ray Vermey <[email protected]> >>>> wrote: >>>> >>>>> Hi Mohammad >>>>> >>>>> on your page: http://tw-regexp.tiddlyspot.com/ >>>>> >>>>> I try the extract-from-tag macro but that doesn't seem to work. >>>>> I copied it from the page but calling the macro does not seem to work. >>>>> Can you shed some light? >>>>> >>>>> Tx >>>>> >>>>> Ray >>>>> >>>>> -- >>>>> 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 [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/tiddlywiki/aad64424-5f63-4117-b3b7-b85c2d921daan%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/tiddlywiki/aad64424-5f63-4117-b3b7-b85c2d921daan%40googlegroups.com?utm_medium=email&utm_source=footer>. >>>>> >>>>> >>>> -- >>>> 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 [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAOVhST1atUfMR08nN6%3Dff0c%3Dx%2BdJ72v1-YbWJN9OSgQw%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAOVhST1atUfMR08nN6%3Dff0c%3Dx%2BdJ72v1-YbWJN9OSgQw%40mail.gmail.com?utm_medium=email&utm_source=footer>. >>>> >>>> >>>> -- >>>> 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 [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/tiddlywiki/012813c6-48b7-49bd-8bb3-dbe3f122b63c%40gmail.com >>>> <https://groups.google.com/d/msgid/tiddlywiki/012813c6-48b7-49bd-8bb3-dbe3f122b63c%40gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMALfQeAR4GG8oPUHke1ybEuBDngMYG%3DB1v6F_AF9L8AgA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMALfQeAR4GG8oPUHke1ybEuBDngMYG%3DB1v6F_AF9L8AgA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9D8Bo3dc%3D9cVFX5ny7rW6PtF5Dt-g%3DDnfgYpFQmrZ-zZw%40mail.gmail.com >> <https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9D8Bo3dc%3D9cVFX5ny7rW6PtF5Dt-g%3DDnfgYpFQmrZ-zZw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDxMxMiJPcPYvORX3voWbEes%3D3E4oMSsemWh58foJd3wQ%40mail.gmail.com > <https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDxMxMiJPcPYvORX3voWbEes%3D3E4oMSsemWh58foJd3wQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9CiKdhELGdtsSSnpTAXv-gtotT_Do43OuWtgqacz-6haA%40mail.gmail.com.

