Negacja
not
Metoda not neguje następne wyrażenie.
use Rudashi\Regex;
 
$pattern = Regex::build()->not()->word();
 
// /[^\w]/
Alternatywnie, można użyć właściwości not, która zadziała identycznie.
use Rudashi\Regex;
 
$pattern = Regex::build()->not->word();
 
// /[^\w]/