help-gnunet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integration of GNUnets regex service


From: Christian Grothoff
Subject: Re: Integration of GNUnets regex service
Date: Thu, 21 May 2020 23:01:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Hi!

Very little documentation on the regex documentation was ever written,
you can find it here:

https://docs.gnunet.org/handbook/gnunet.html#REGEX-Subsystem

Beyond that, there is Max's MS thesis, which I just rebuild from SRC
(with some trouble, build may not be perfect) and put up on
https://grothoff.org/christian/szengel2012.pdf

I've also now posted an (unpublished) paper on the subject at
https://grothoff.org/christian/mesh-policy.pdf -- hopefully those will
be helpful to you.

Anyway, I don't recall any particular reasoning for us behind the
allowed literals, except of course for the special characters like "|"
or "()" that need to be reserved, so it MAY be as trivial as changing
the code to include '@' (but I did not verify this).

Happy hacking!

Christian

On 5/21/20 8:28 PM, TheJackiMonster wrote:
> Hello,
> 
> I'm still working on my chat client using CADET and I implemented a
> search for other peers with the regex service. It works fine using
> names to search for others but I would like to adapt this so that every
> user can select how to be found ( username, mail address, phone number
> ) or even if they don't want to be found at all ( which would be
> default ).
> 
> But there is this problem I get because the regex service lacks a bit
> of documentation. ^^'
> 
> I can't use the '@' character for the mail address ( even escaping with
> '\\' prefix doesn't help ). I have found in the regex_internal.h this:
> 
> #define ALLOWED_LITERALS \
>    "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
> 
> But I can also use the '-' character escaped for phone numbers too...
> so I would like to which characters can be used and which can not. I
> would like to get all possible literals be included in the header of
> the service too for checking in the application. ^^'
> 
> The header of the service is referring to "https://gnunet.org/regex";
> but this page seems to be down. I guess I will try some time machine to
> have a look anyway but I would like to see this situation improving
> some way.
> 
> Thanks for your time and happy hacking.
> Jacki
> 

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]