init param
use <regex> on WIN32