minor optimizing for regular expression in wxm_update.cpp