Ciao Mohammad

I got VERY interested in what you doing on this  ...

I added to the Pattern so the local system wiki could be included too ...

 pattern="^\ *(\$|https?|ftp|file|news|data|mailto):.+$"

It is NOT a solution as the trim [] makes $: unusable.

BUT my key point is that your concept behind this tool idea is 
right-on-the-ball.

It is a very elegant, simple, idea that I hope will develop into a 
full-scale utility!

Best wishes
TT

On Tuesday, 11 May 2021 at 05:53:23 UTC+2 Mohammad wrote:

> On Tue, May 11, 2021 at 1:00 AM TiddlyTweeter <[email protected]> wrote:
>
>>  Mohammad wrote:
>>
>>> Hi TT,
>>>
>>  
>>
>>> In my own testing so far this more minimal regex seems to work ... !!
>>>>
>>>>    -  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$
>>>>
>>>> Lovely! one minor comment:
>>>
>>> 1. I like to check the validity of links! So if one drops something 
>>> like this (http.yahoo.com) or this (yahoo.come.) it wont detect this 
>>> and will add the wrong link!
>>>     So, I prefer a URL validator for pattern. What I sent catches all 
>>> these and only passed the validated URL.
>>>
>>
>> RIGHT!
>>
>> I differ in ASSUMING the link IN is VALID. I don't want to deal with 
>> naughty boys.
>>
>> That is part of the value of showing the TITLE & LINK for edit though, so 
>> you can DISCARD errant boys.
>>
>
> Yes, this is very handy!
>
>  
>
>>
>> Personally I am NOT inclined to parse links for  perfection. 
>> What if they are in Chinese? 
>>
>
> Yep, that is a problem! The solution does work most of the time as you use 
> English URL much more!
>
>  
>
>> The issue with your extra parsing is it I do not think it is entirely 
>> fair? 
>>
>> Just a question!!!
>>
>> TT, x
>>
>> -- 
>>
> 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/3c9e0f84-f512-41ee-b109-2863e67a0dban%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/3c9e0f84-f512-41ee-b109-2863e67a0dban%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/0ed7f98d-0890-465e-91af-04c577b8c4d9n%40googlegroups.com.

Reply via email to