check
Re: check
Code: Select all
#include <regex> bool:IsIp(const str[]){ new ret; static Regex:pattern; if (!pattern) pattern = regex_compile("\b(?:\d{1,3}\.){3}\d{1,3}\b", ret, "", 0); return regex_match_c(str, pattern, ret) > 0 ? true : false;}
Re: check
aciu, lockhleV wrote:Code: Select all
#include <regex> bool:IsIp(const str[]){ new ret; static Regex:pattern; if (!pattern) pattern = regex_compile("\b(?:\d{1,3}\.){3}\d{1,3}\b", ret, "", 0); return regex_match_c(str, pattern, ret) > 0 ? true : false;}
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 7 guests