I'm trying to find everything in a paragraph that is not abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789, not a space // gi
/[^a-zA-Z0-9]|[^ ]/gi
above does not work!
You can also try:
/[^a-zA-Z0-9\s]/gi
If you want to exclude only spaces, use:
[^ ]*
Check the regex here if you want.
^[\d\w]*$ ^ [\ w] * $ reg ' ^(start) $(end) 0-9a-zA-Z
^[\d\w]*$
^(start)
$(end)
0-9a-zA-Z
++ ansistring="^[\\d\\w]*$";
ansistring="^[\\d\\w]*$";
, abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789, //gi
replaceAll("[^A-Za-z0-9\\s]", "")