Regex availability check in whois.json
As stated in the docs https://docs.whmcs.com/WHOIS_Servers :
- available - This is the string that WHMCS will match against to determine an available domain. This string must only appear in the output when the domain is available.
My idea is to make additional attribute available_regex which allows a regex string as a parameter, something like:
Real life case where it may be used. Here is available domain in kiev.ua zone:
We see here, that string "No entries found for" can be used to check domain availability. Ok, checking another domain:
This domain is technically available ("No entries found for" in whois output), but there is weird rule for some domain zones in .ua, that states "you can register X.kyiv.ua only if you already registered X.kiev.ua".
Alternatively, if regex is too much hasle, it may be done via something like: