Re: Integration of GNUnets regex service
Christian Grothoff <[email protected]> Thu, 21 May 2020 23:01:14 +0200
| Newsgroups | gmane.network.gnunet.general |
|---|---|
| Message-ID | <[email protected]> |
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 >
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE2EI7yzJseQcDOSnHk55r4eKfw8wFAl7G7BoACgkQk55r4eKf w8z2Bg/9FS1nBdNCIghaF43pNzD+y1N0cXVPeLb2aXmBnR9d1Yu3B1Aw62HXGQHq aiOd2utxTDGCJ3Dv+j9vJ202B4oJubdVqYvsspEDHHLL+BKDOW/7S8U+PB+QDjmc E3qwSXAdF3twvHXcnBSEV2VF4RvLNo1FdGL+VAGkWVz8iX/N5xys9jlK+r4nH615 xQ24G7DCDbUkHSh8vdAObNW7ntgd0BdWCLG3maAsRUl7spnAfNydVEZQFkSjYfUt +UA2NtgdPTrquJWurwpxTfZNbYPFirMs3dhcYMcB1L1AZASgerEJUiCPjmXFqMMu 9z+I/2G1Rz2x3t4mWs+jUMpIUaJN9EN7w9frAus5J7uNso5NcTCHoQgNxT8WoDNm sxrIRO5ataKACobQfh+SxfuFak5/A/Kl56+u9nahlMBw3NWZ0Mn9vQN8NzV2E/Hf fuTtgXV+kG2YNAj08+2BQsTOBfvBaE0i6CxG7NSVOfk7QlfdcGu/QR0/zrWK62pl vcf1ZFqAODDjgYwm+YwZfBk40yKFnCe9nFUHqbU/7zHFt+LryP4iSjg+GkBSl64C PIQADpF0va9b75lWJZ5htmTM6y4wD2Yd9YopVi0QeKbpRDS1vcQ8H2xzyT0riTRN mS4wCfuErbLoR/YyIhBz92vdHyjCD0X2NeDR+iUlVSw66S7SV3Q= =kqTK -----END PGP SIGNATURE-----