We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
there is no regex matching for ipv6 and after some searching maybe it's better to have multiple regex lines per "format"
this post seems like it would work? (or atleast to get a idea) https://stackoverflow.com/a/21943960
if ( /* IPv6 expanded */ REGEX_LIKE(v, '\A[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7}\z', 'i') /* IPv6 shorthand */ OR (NOT REGEX_LIKE(v, '\A(.*?[a-f0-9](:|\z)){8}', 'i') AND REGEX_LIKE(v, '\A([a-f0-9]{1,4}(:[a-f0-9]{1,4}){0,6})?::([a-f0-9]{1,4}(:[a-f0-9]{1,4}){0,6})?\z', 'i')) /* IPv6 dotted-quad notation, expanded */ OR REGEX_LIKE(v, '\A[a-f0-9]{1,4}(:[a-f0-9]{1,4}){5}:(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}\z', 'i') /* IPv6 dotted-quad notation, shorthand */ OR (NOT REGEX_LIKE(v, '\A(.*?[a-f0-9]:){6}', 'i') AND REGEX_LIKE(v, '\A([a-f0-9]{1,4}(:[a-f0-9]{1,4}){0,4})?::([a-f0-9]{1,4}:){0,5}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}\z', 'i')) ) then
The text was updated successfully, but these errors were encountered:
Thank you for the report, we will get this added.
Sorry, something went wrong.
No branches or pull requests
there is no regex matching for ipv6
and after some searching maybe it's better to have multiple regex lines per "format"
this post seems like it would work? (or atleast to get a idea)
https://stackoverflow.com/a/21943960
The text was updated successfully, but these errors were encountered: