fix selection to search pattern word begin detection
use C isalnum instead of C++ std::isalnum