[UA-discuss] Regular Expression To Validate EAI Addresses
Marc Blanchet
marc.blanchet at viagenie.ca
Fri Aug 14 16:27:12 UTC 2020
On 14 Aug 2020, at 12:15, John Levine wrote:
> In article <A1234DFB-AE2B-4FA4-9FB7-B65D365651BD at viagenie.ca> you
> write:
>> The best way would be to modify the regex engine itself to embed the
>> IDNA protocol inside it and then define a new regex token for IDNA
>> and
>> then we will be in business… Not an easy task.
>
> Good catch on the digits, I missed that. To validate host names I
> think the least bad plan is not to try to build IDNA into regexes, but
> do it in two steps, use a loose RE but then validate the domain
> through an actual IDN library.
yeah. exactly what I said in the java-ua tutorial.
Marc.
>
> --
> Regards,
> John Levine, johnl at taugh.com, Primary Perpetrator of "The Internet for
> Dummies",
> Please consider the environment before reading this e-mail.
> https://jl.ly
More information about the UA-discuss
mailing list