On 14 Aug 2020, at 12:15, John Levine wrote:
In article <A1234DFB-AE2B-4FA4-9FB7-B65D365651BD@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@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly