I am trying to find everything in a paragraph that is not abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 and not space / /gi
/[^a-zA-Z0-9]|[^ ]/g
try ^[\d\w]*$ or ^[\w]*$ as reg' Expression means from ^(start) to $(end) match 0-9a-zA-Z only
^[\d\w]*$
^(start)
$(end)
0-9a-zA-Z
for c++ ansistring="^[\\d\\w]*$";
ansistring="^[\\d\\w]*$";