On August 14, 2020 3:33:08 PM GMT-03:00, Arnt Gulbrandsen <arnt@gulbrandsen.priv.no> wrote:
Writing a single regexp is probably forbiddingly complicated (and I say
that as someone who once wrote a 25-line regexp and used it in
production), but writing two might work well.
One that accepts most
valid names and accepts noting invalid, and one that rejects
common/assumedly common errors and accepts everything that's valid (and
some errors). These should be simple to write, and yield three answers:
good, bad and uncertain.
Arnt
UA-discuss mailing list
UA-discuss@icann.org
https://mm.icann.org/mailman/listinfo/ua-discuss
By submitting your personal data, you consent to the processing of your personal data for purposes of subscribing to this mailing list accordance with the ICANN Privacy Policy (https://www.icann.org/privacy/policy) and the website Terms of Service (https://www.icann.org/privacy/tos). You can visit the Mailman link above to change your membership status or configuration, including unsubscribing, setting digest-style delivery or disabling delivery altogether (e.g., for a vacation), and so on.